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

Side by Side Diff: build/toolchain/gcc_toolchain.gni

Issue 2888623003: Use a GN arg for controlling linker map file generation. (Closed)
Patch Set: agrieve comments Created 3 years, 7 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/toolchain/toolchain.gni » ('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 (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/sanitizers/sanitizers.gni") 7 import("//build/config/sanitizers/sanitizers.gni")
8 import("//build/config/v8_target_cpu.gni") 8 import("//build/config/v8_target_cpu.gni")
9 import("//build/toolchain/cc_wrapper.gni") 9 import("//build/toolchain/cc_wrapper.gni")
10 import("//build/toolchain/clang_static_analyzer.gni") 10 import("//build/toolchain/clang_static_analyzer.gni")
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 } else { 247 } else {
248 extra_cxxflags = "" 248 extra_cxxflags = ""
249 } 249 }
250 250
251 if (defined(invoker.extra_ldflags) && invoker.extra_ldflags != "") { 251 if (defined(invoker.extra_ldflags) && invoker.extra_ldflags != "") {
252 extra_ldflags = " " + invoker.extra_ldflags 252 extra_ldflags = " " + invoker.extra_ldflags
253 } else { 253 } else {
254 extra_ldflags = "" 254 extra_ldflags = ""
255 } 255 }
256 256
257 # Currently disabled on LLD because of a bug (fixed upstream).
258 # See https://crbug.com/716209.
259 enable_linker_map = defined(invoker.enable_linker_map) && 257 enable_linker_map = defined(invoker.enable_linker_map) &&
260 invoker.enable_linker_map && !use_lld 258 invoker.enable_linker_map && generate_linker_map
261 259
262 # These library switches can apply to all tools below. 260 # These library switches can apply to all tools below.
263 lib_switch = "-l" 261 lib_switch = "-l"
264 lib_dir_switch = "-L" 262 lib_dir_switch = "-L"
265 263
266 # Object files go in this directory. 264 # Object files go in this directory.
267 object_subdir = "{{target_out_dir}}/{{label_name}}" 265 object_subdir = "{{target_out_dir}}/{{label_name}}"
268 266
269 tool("cc") { 267 tool("cc") {
270 depfile = "{{output}}.d" 268 depfile = "{{output}}.d"
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
586 ]) 584 ])
587 585
588 toolchain_args = { 586 toolchain_args = {
589 if (defined(invoker.toolchain_args)) { 587 if (defined(invoker.toolchain_args)) {
590 forward_variables_from(invoker.toolchain_args, "*") 588 forward_variables_from(invoker.toolchain_args, "*")
591 } 589 }
592 is_clang = true 590 is_clang = true
593 } 591 }
594 } 592 }
595 } 593 }
OLDNEW
« no previous file with comments | « no previous file | build/toolchain/toolchain.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698