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/clang/clang.gni") | 6 import("//build/config/clang/clang.gni") |
7 import("//build/config/nacl/config.gni") | 7 import("//build/config/nacl/config.gni") |
8 import("//build/config/sanitizers/sanitizers.gni") | 8 import("//build/config/sanitizers/sanitizers.gni") |
9 import("//build/config/v8_target_cpu.gni") | 9 import("//build/config/v8_target_cpu.gni") |
10 import("//build/toolchain/cc_wrapper.gni") | 10 import("//build/toolchain/cc_wrapper.gni") |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 } else { | 241 } else { |
242 extra_cxxflags = "" | 242 extra_cxxflags = "" |
243 } | 243 } |
244 | 244 |
245 if (defined(invoker.extra_ldflags) && invoker.extra_ldflags != "") { | 245 if (defined(invoker.extra_ldflags) && invoker.extra_ldflags != "") { |
246 extra_ldflags = " " + invoker.extra_ldflags | 246 extra_ldflags = " " + invoker.extra_ldflags |
247 } else { | 247 } else { |
248 extra_ldflags = "" | 248 extra_ldflags = "" |
249 } | 249 } |
250 | 250 |
251 enable_linker_map = | 251 # Currently disabled on LLD because of a bug (fixed upstream). |
252 defined(invoker.enable_linker_map) && invoker.enable_linker_map | 252 # See https://crbug.com/716209. |
| 253 enable_linker_map = defined(invoker.enable_linker_map) && |
| 254 invoker.enable_linker_map && !use_lld |
253 | 255 |
254 # These library switches can apply to all tools below. | 256 # These library switches can apply to all tools below. |
255 lib_switch = "-l" | 257 lib_switch = "-l" |
256 lib_dir_switch = "-L" | 258 lib_dir_switch = "-L" |
257 | 259 |
258 # Object files go in this directory. | 260 # Object files go in this directory. |
259 object_subdir = "{{target_out_dir}}/{{label_name}}" | 261 object_subdir = "{{target_out_dir}}/{{label_name}}" |
260 | 262 |
261 tool("cc") { | 263 tool("cc") { |
262 depfile = "{{output}}.d" | 264 depfile = "{{output}}.d" |
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
564 ]) | 566 ]) |
565 | 567 |
566 toolchain_args = { | 568 toolchain_args = { |
567 if (defined(invoker.toolchain_args)) { | 569 if (defined(invoker.toolchain_args)) { |
568 forward_variables_from(invoker.toolchain_args, "*") | 570 forward_variables_from(invoker.toolchain_args, "*") |
569 } | 571 } |
570 is_clang = true | 572 is_clang = true |
571 } | 573 } |
572 } | 574 } |
573 } | 575 } |
OLD | NEW |