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

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

Issue 1801073002: Add gnu.build.id to shared libraries in GN. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/sanitizers/sanitizers.gni") 6 import("//build/config/sanitizers/sanitizers.gni")
7 import("//build/config/sysroot.gni") 7 import("//build/config/sysroot.gni")
8 8
9 assert(is_android) 9 assert(is_android)
10 10
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 cflags += [ "-mstackrealign" ] 56 cflags += [ "-mstackrealign" ]
57 } 57 }
58 } 58 }
59 59
60 if (current_cpu == "mipsel" && is_clang) { 60 if (current_cpu == "mipsel" && is_clang) {
61 # Let clang find the ld.bfd in the NDK. 61 # Let clang find the ld.bfd in the NDK.
62 ldflags += [ "--gcc-toolchain=$rebased_android_toolchain_root" ] 62 ldflags += [ "--gcc-toolchain=$rebased_android_toolchain_root" ]
63 } 63 }
64 64
65 ldflags += [ 65 ldflags += [
66 "-Wl,--build-id=sha1",
66 "-Wl,--no-undefined", 67 "-Wl,--no-undefined",
67 68
68 # Don't allow visible symbols from libgcc or libc++ to be 69 # Don't allow visible symbols from libgcc or libc++ to be
69 # re-exported. 70 # re-exported.
70 "-Wl,--exclude-libs=libgcc.a", 71 "-Wl,--exclude-libs=libgcc.a",
71 "-Wl,--exclude-libs=libc++_static.a", 72 "-Wl,--exclude-libs=libc++_static.a",
72 73
73 # Don't allow visible symbols from libraries that contain 74 # Don't allow visible symbols from libraries that contain
74 # assembly code with symbols that aren't hidden properly. 75 # assembly code with symbols that aren't hidden properly.
75 # http://crbug.com/448386 76 # http://crbug.com/448386
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 220
220 # Avoid errors with current NDK: 221 # Avoid errors with current NDK:
221 # "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" 222 # "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"
222 "-finstrument-functions-exclude-file-list=arm_neon.h", 223 "-finstrument-functions-exclude-file-list=arm_neon.h",
223 ] 224 ]
224 } 225 }
225 } 226 }
226 227
227 config("no_cygprofile_instrumentation") { 228 config("no_cygprofile_instrumentation") {
228 } 229 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698