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/mac/mac_sdk.gni") | 6 import("//build/config/mac/mac_sdk.gni") |
| 7 import("//build/config/mac/symbols.gni") | 7 import("//build/config/mac/symbols.gni") |
| 8 | 8 |
| 9 # This is included by reference in the //build/config/compiler config that | 9 # 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. | 10 # is applied to all targets. It is here to separate out the logic. |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 89 ] | 89 ] |
| 90 } | 90 } |
| 91 } | 91 } |
| 92 | 92 |
| 93 # On Mac, this is used only for executables. | 93 # On Mac, this is used only for executables. |
| 94 config("mac_executable_flags") { | 94 config("mac_executable_flags") { |
| 95 # Remove this when targeting >=10.7 since it is the default in that config. | 95 # Remove this when targeting >=10.7 since it is the default in that config. |
| 96 ldflags = [ "-Wl,-pie" ] # Position independent. | 96 ldflags = [ "-Wl,-pie" ] # Position independent. |
| 97 } | 97 } |
| 98 | 98 |
| 99 # The ldflags referenced below are handled by | 99 # The ldflags referenced below are handled by //build/toolchain/mac/linker_drive r.py. |
|
Mark Mentovai
2016/07/15 19:24:17
This was wrapped before, why not now?
Robert Sesek
2016/07/15 20:50:22
Don't know what happened, but fixed.
| |
| 100 # //build/toolchain/mac/linker_driver.py. | 100 |
| 101 # Remove this config if a target wishes to change the arguments passed to the | 101 # 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 | 102 # 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 | 103 # from a binary, but some targets may wish to specify a saves file to preserve |
| 104 # specific symbols. | 104 # specific symbols. |
| 105 config("strip_all") { | 105 config("strip_all") { |
| 106 if (enable_stripping) { | 106 if (enable_stripping) { |
| 107 ldflags = [ "-Wcrl,strip,-x,-S" ] | 107 ldflags = [ "-Wcrl,strip,-x,-S" ] |
| 108 } | 108 } |
| 109 } | 109 } |
| 110 | |
| 111 # This config will keep unstripped copies of the linker output. | |
| 112 config("save_unstripped_output") { | |
| 113 if (save_unstripped_output) { | |
| 114 ldflags = [ "-Wcrl,unstripped," + rebase_path(root_out_dir) ] | |
| 115 } | |
| 116 } | |
| OLD | NEW |