Chromium Code Reviews| 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/sysroot.gni") | 5 import("//build/config/sysroot.gni") |
| 6 import("//build/config/ios/ios_sdk.gni") | |
| 6 import("//build/config/mac/mac_sdk.gni") | 7 import("//build/config/mac/mac_sdk.gni") |
| 7 import("//build/config/mac/symbols.gni") | 8 import("//build/config/mac/symbols.gni") |
| 8 | 9 |
| 9 # 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 |
| 10 # is applied to all targets. It is here to separate out the logic. | 11 # is applied to all targets. It is here to separate out the logic. |
| 11 # | 12 # |
| 12 # This is applied to BOTH desktop Mac and iOS targets. | 13 # This is applied to BOTH desktop Mac and iOS targets. |
| 13 config("compiler") { | 14 config("compiler") { |
| 14 # These flags are shared between the C compiler and linker. | 15 # These flags are shared between the C compiler and linker. |
| 15 common_mac_flags = [] | 16 common_mac_flags = [] |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 96 ldflags = [ "-Wl,-pie" ] # Position independent. | 97 ldflags = [ "-Wl,-pie" ] # Position independent. |
| 97 } | 98 } |
| 98 | 99 |
| 99 # The ldflags referenced below are handled by | 100 # The ldflags referenced below are handled by |
| 100 # //build/toolchain/mac/linker_driver.py. | 101 # //build/toolchain/mac/linker_driver.py. |
| 101 # Remove this config if a target wishes to change the arguments passed to the | 102 # Remove this config if a target wishes to change the arguments passed to the |
| 102 # strip command during linking. This config by default strips all symbols | 103 # strip command during linking. This config by default strips all symbols |
| 103 # from a binary, but some targets may wish to specify a saves file to preserve | 104 # from a binary, but some targets may wish to specify a saves file to preserve |
| 104 # specific symbols. | 105 # specific symbols. |
| 105 config("strip_all") { | 106 config("strip_all") { |
| 106 if (enable_stripping) { | 107 if (enable_stripping && (!is_ios || additional_toolchains == [])) { |
|
Robert Sesek
2016/07/18 20:09:42
Considering making |!is_ios || additional_toolchai
sdefresne
2016/07/19 09:12:12
Done.
| |
| 107 ldflags = [ "-Wcrl,strip,-x,-S" ] | 108 ldflags = [ "-Wcrl,strip,-x,-S" ] |
| 108 } | 109 } |
| 109 } | 110 } |
| OLD | NEW |