Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1040)

Side by Side Diff: build/config/android/BUILD.gn

Issue 1363793002: Port the order_profiling GYP flag to GN (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/android/config.gni") 5 import("//build/config/android/config.gni")
6 import("//build/config/sysroot.gni") 6 import("//build/config/sysroot.gni")
7 7
8 config("sdk") { 8 config("sdk") {
9 if (sysroot != "") { 9 if (sysroot != "") {
10 cflags = [ "--sysroot=" + sysroot ] 10 cflags = [ "--sysroot=" + sysroot ]
(...skipping 12 matching lines...) Expand all
23 23
24 config("executable_config") { 24 config("executable_config") {
25 cflags = [ "-fPIE" ] 25 cflags = [ "-fPIE" ]
26 ldflags = [ "-pie" ] 26 ldflags = [ "-pie" ]
27 } 27 }
28 28
29 config("hide_native_jni_exports") { 29 config("hide_native_jni_exports") {
30 ldflags = [ "-Wl,--version-script=" + 30 ldflags = [ "-Wl,--version-script=" +
31 rebase_path("//build/android/android_no_jni_exports.lst") ] 31 rebase_path("//build/android/android_no_jni_exports.lst") ]
32 } 32 }
33
34 # Instrumentation -------------------------------------------------------------
35 #
36 # The BUILDCONFIG file sets the "default_finstrument_functions" config on
37 # targets by default. You can override whether the "-finstrument-functions"
38 # compiler flag is used on a per-target basis:
39 #
40 # configs -= [ "//build/config/android:default_finstrument_functions" ]
41 # configs += [ "//build/config/android:no_finstrument_functions" ]
42
43 config("default_finstrument_functions") {
agrieve 2015/09/23 19:20:48 "finstrument" is a bit of a funny word. Maybe just
44 configs = []
agrieve 2015/09/23 19:20:48 nit: remove the empty list initialization and use:
45 if (order_profiling) {
46 configs += [ ":finstrument_functions" ]
47 } else {
48 configs += [ ":no_finstrument_functions" ]
49 }
50 }
51
52 config("finstrument_functions") {
53 cflags = [
54 "-finstrument-functions",
55
56 # Allow mmx intrinsics to inline, so that the compiler can expand the intrin sics.
57 "-finstrument-functions-exclude-file-list=mmintrin.h",
58
59 # Avoid errors with current NDK:
60 # "third_party/android_tools/ndk/toolchains/arm-linux-androideabi-4.6/prebui lt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/include/arm_neon.h:3426 :3: error: argument must be a constant"
61 "-finstrument-functions-exclude-file-list=arm_neon.h,SaturatedArithmeticARM. h",
62 ]
63 }
64
65 config("no_finstrument_functions") {
66 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698