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

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

Issue 2732023004: Revert of build: Prepare for building clang without ENABLE_LINKER_BUILD_ID=ON (Closed)
Patch Set: 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') | 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 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",
42 "-Wl,--no-undefined", 43 "-Wl,--no-undefined",
43 44
44 # Don't allow visible symbols from libgcc or libc++ to be 45 # Don't allow visible symbols from libgcc or libc++ to be
45 # re-exported. 46 # re-exported.
46 "-Wl,--exclude-libs=libgcc.a", 47 "-Wl,--exclude-libs=libgcc.a",
47 "-Wl,--exclude-libs=libc++_static.a", 48 "-Wl,--exclude-libs=libc++_static.a",
48 49
49 # Don't allow visible symbols from libraries that contain 50 # Don't allow visible symbols from libraries that contain
50 # assembly code with symbols that aren't hidden properly. 51 # assembly code with symbols that aren't hidden properly.
51 # http://crbug.com/448386 52 # http://crbug.com/448386
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 229
229 # Avoid errors with current NDK: 230 # Avoid errors with current NDK:
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" 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"
231 "-finstrument-functions-exclude-file-list=arm_neon.h", 232 "-finstrument-functions-exclude-file-list=arm_neon.h",
232 ] 233 ]
233 } 234 }
234 } 235 }
235 236
236 config("no_cygprofile_instrumentation") { 237 config("no_cygprofile_instrumentation") {
237 } 238 }
OLDNEW
« no previous file with comments | « no previous file | build/config/compiler/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698