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

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

Issue 2732293002: build: Prepare for building clang without ENABLE_LINKER_BUILD_ID=ON (Closed)
Patch Set: explicit sha1, remove android Created 3 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 | build/config/compiler/BUILD.gn » ('j') | build/config/compiler/BUILD.gn » ('J')
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 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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | build/config/compiler/BUILD.gn » ('j') | build/config/compiler/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698