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/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 Loading... |
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 } |
OLD | NEW |