OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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/chrome_build.gni") | 6 import("//build/config/chrome_build.gni") |
7 import("//build/config/compiler/compiler.gni") | 7 import("//build/config/compiler/compiler.gni") |
8 import("//build/config/nacl/config.gni") | 8 import("//build/config/nacl/config.gni") |
9 import("//build/toolchain/cc_wrapper.gni") | 9 import("//build/toolchain/cc_wrapper.gni") |
10 import("//build/toolchain/toolchain.gni") | 10 import("//build/toolchain/toolchain.gni") |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 | 270 |
271 if (enable_full_stack_frames_for_profiling) { | 271 if (enable_full_stack_frames_for_profiling) { |
272 cflags += [ | 272 cflags += [ |
273 "-fno-inline", | 273 "-fno-inline", |
274 "-fno-optimize-sibling-calls", | 274 "-fno-optimize-sibling-calls", |
275 ] | 275 ] |
276 } | 276 } |
277 } | 277 } |
278 } | 278 } |
279 | 279 |
| 280 if (is_official_build) { |
| 281 # Explicitly pass --build-id to ld. Compilers used to always pass this |
| 282 # implicitly but don't any more (in particular clang when built without |
| 283 # ENABLE_LINKER_BUILD_ID=ON). The crash infrastructure does need a build |
| 284 # id, so explicitly enable it in official builds. It's not needed in |
| 285 # unofficial builds and computing it does slow down the link, so go with |
| 286 # faster links in unofficial builds. |
| 287 ldflags += [ "-Wl,--build-id=sha1" ] |
| 288 } |
| 289 |
280 defines += [ "_FILE_OFFSET_BITS=64" ] | 290 defines += [ "_FILE_OFFSET_BITS=64" ] |
281 | 291 |
282 if (!is_android) { | 292 if (!is_android) { |
283 defines += [ | 293 defines += [ |
284 "_LARGEFILE_SOURCE", | 294 "_LARGEFILE_SOURCE", |
285 "_LARGEFILE64_SOURCE", | 295 "_LARGEFILE64_SOURCE", |
286 ] | 296 ] |
287 } | 297 } |
288 | 298 |
289 if (!is_nacl) { | 299 if (!is_nacl) { |
(...skipping 1416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1706 | 1716 |
1707 if (is_ios || is_mac) { | 1717 if (is_ios || is_mac) { |
1708 # On Mac and iOS, this enables support for ARC (automatic ref-counting). | 1718 # On Mac and iOS, this enables support for ARC (automatic ref-counting). |
1709 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. | 1719 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. |
1710 config("enable_arc") { | 1720 config("enable_arc") { |
1711 common_flags = [ "-fobjc-arc" ] | 1721 common_flags = [ "-fobjc-arc" ] |
1712 cflags_objc = common_flags | 1722 cflags_objc = common_flags |
1713 cflags_objcc = common_flags | 1723 cflags_objcc = common_flags |
1714 } | 1724 } |
1715 } | 1725 } |
OLD | NEW |