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

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

Issue 2237113004: Remove GN back-compat toolchain code for NaCl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 | no next file » | 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/clang/clang.gni") 5 import("//build/config/clang/clang.gni")
6 import("//build/config/nacl/config.gni") 6 import("//build/config/nacl/config.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/goma.gni") 10 import("//build/toolchain/goma.gni")
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 nm = "${toolprefix}nm" 463 nm = "${toolprefix}nm"
464 464
465 forward_variables_from(invoker, [ "strip" ]) 465 forward_variables_from(invoker, [ "strip" ])
466 466
467 toolchain_args = { 467 toolchain_args = {
468 if (defined(invoker.toolchain_args)) { 468 if (defined(invoker.toolchain_args)) {
469 forward_variables_from(invoker.toolchain_args, "*") 469 forward_variables_from(invoker.toolchain_args, "*")
470 } 470 }
471 is_clang = true 471 is_clang = true
472 } 472 }
473
474 # Backwards-compatible handling for toolchain definitions in the Native
475 # Client repo.
476 #
477 # TODO(brettw) bug 634446 remove this when
478 # //native_client/src/trusted/service_runtime/linux/BUILD.gn is updated to
479 # use the new-style toolchain_args.
480 if (defined(invoker.toolchain_cpu)) {
481 assert(!defined(toolchain_args.current_cpu))
482 toolchain_args.current_cpu = invoker.toolchain_cpu
483 }
484 if (defined(invoker.toolchain_os)) {
485 assert(!defined(toolchain_args.current_os))
486 toolchain_args.current_os = invoker.toolchain_os
487 }
488 if (defined(invoker.use_debug_fission)) {
489 assert(!defined(toolchain_args.use_debug_fission))
490 toolchain_args.use_debug_fission = invoker.use_debug_fission
491 }
492 if (defined(invoker.use_gold)) {
493 assert(!defined(toolchain_args.use_gold))
494 toolchain_args.use_gold = invoker.use_gold
495 }
496 } 473 }
497 } 474 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698