OLD | NEW |
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/sanitizers/sanitizers.gni") | 6 import("//build/config/sanitizers/sanitizers.gni") |
7 | 7 |
8 assert(is_android) | 8 assert(is_android) |
9 | 9 |
10 # This is included by reference in the //build/config/compiler config that | 10 # This is included by reference in the //build/config/compiler config that |
(...skipping 21 matching lines...) Expand all Loading... |
32 # Have to force IAS for mips64. | 32 # Have to force IAS for mips64. |
33 "-fintegrated-as", | 33 "-fintegrated-as", |
34 ] | 34 ] |
35 } | 35 } |
36 } else { | 36 } else { |
37 # Clang doesn't support these flags. | 37 # Clang doesn't support these flags. |
38 cflags += [ "-finline-limit=64" ] | 38 cflags += [ "-finline-limit=64" ] |
39 } | 39 } |
40 | 40 |
41 ldflags = [ | 41 ldflags = [ |
42 "-Wl,--build-id=sha1", | |
43 "-Wl,--no-undefined", | 42 "-Wl,--no-undefined", |
44 | 43 |
45 # Don't allow visible symbols from libgcc or libc++ to be | 44 # Don't allow visible symbols from libgcc or libc++ to be |
46 # re-exported. | 45 # re-exported. |
47 "-Wl,--exclude-libs=libgcc.a", | 46 "-Wl,--exclude-libs=libgcc.a", |
48 "-Wl,--exclude-libs=libc++_static.a", | 47 "-Wl,--exclude-libs=libc++_static.a", |
49 | 48 |
50 # Don't allow visible symbols from libraries that contain | 49 # Don't allow visible symbols from libraries that contain |
51 # assembly code with symbols that aren't hidden properly. | 50 # assembly code with symbols that aren't hidden properly. |
52 # http://crbug.com/448386 | 51 # http://crbug.com/448386 |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 | 228 |
230 # Avoid errors with current NDK: | 229 # Avoid errors with current NDK: |
231 # "third_party/android_tools/ndk/toolchains/arm-linux-androideabi-4.6/preb
uilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/include/arm_neon.h:34
26:3: error: argument must be a constant" | 230 # "third_party/android_tools/ndk/toolchains/arm-linux-androideabi-4.6/preb
uilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/include/arm_neon.h:34
26:3: error: argument must be a constant" |
232 "-finstrument-functions-exclude-file-list=arm_neon.h", | 231 "-finstrument-functions-exclude-file-list=arm_neon.h", |
233 ] | 232 ] |
234 } | 233 } |
235 } | 234 } |
236 | 235 |
237 config("no_cygprofile_instrumentation") { | 236 config("no_cygprofile_instrumentation") { |
238 } | 237 } |
OLD | NEW |