| 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/nacl/config.gni") | 5 import("//build/config/nacl/config.gni") |
| 6 import("//build/config/sanitizers/sanitizers.gni") | 6 import("//build/config/sanitizers/sanitizers.gni") |
| 7 import("//build/toolchain/cc_wrapper.gni") | 7 import("//build/toolchain/cc_wrapper.gni") |
| 8 import("//build/toolchain/goma.gni") | 8 import("//build/toolchain/goma.gni") |
| 9 import("//build/toolchain/toolchain.gni") | 9 import("//build/toolchain/toolchain.gni") |
| 10 | 10 |
| (...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 # passed to the build. They are ignored when this is the default toolchain. | 403 # passed to the build. They are ignored when this is the default toolchain. |
| 404 toolchain_args() { | 404 toolchain_args() { |
| 405 current_cpu = invoker.toolchain_cpu | 405 current_cpu = invoker.toolchain_cpu |
| 406 current_os = invoker.toolchain_os | 406 current_os = invoker.toolchain_os |
| 407 | 407 |
| 408 # These values need to be passed through unchanged. | 408 # These values need to be passed through unchanged. |
| 409 host_toolchain = host_toolchain | 409 host_toolchain = host_toolchain |
| 410 target_os = target_os | 410 target_os = target_os |
| 411 target_cpu = target_cpu | 411 target_cpu = target_cpu |
| 412 | 412 |
| 413 forward_variables_from(invoker, | |
| 414 [ | |
| 415 "use_allocator", | |
| 416 "use_gold", | |
| 417 ]) | |
| 418 | |
| 419 if (defined(invoker.is_clang)) { | 413 if (defined(invoker.is_clang)) { |
| 420 is_clang = invoker.is_clang | 414 is_clang = invoker.is_clang |
| 421 } | 415 } |
| 422 if (defined(invoker.is_component_build)) { | 416 if (defined(invoker.is_component_build)) { |
| 423 is_component_build = invoker.is_component_build | 417 is_component_build = invoker.is_component_build |
| 424 } | 418 } |
| 425 if (defined(invoker.is_nacl_glibc)) { | 419 if (defined(invoker.is_nacl_glibc)) { |
| 426 is_nacl_glibc = invoker.is_nacl_glibc | 420 is_nacl_glibc = invoker.is_nacl_glibc |
| 427 } | 421 } |
| 428 if (defined(invoker.symbol_level)) { | 422 if (defined(invoker.symbol_level)) { |
| 429 symbol_level = invoker.symbol_level | 423 symbol_level = invoker.symbol_level |
| 430 } | 424 } |
| 425 if (defined(invoker.use_allocator)) { |
| 426 use_allocator = invoker.use_allocator |
| 427 } |
| 428 if (defined(invoker.use_gold)) { |
| 429 use_gold = invoker.use_gold |
| 430 } |
| 431 | 431 |
| 432 if (defined(invoker.clear_sanitizers) && invoker.clear_sanitizers) { | 432 if (defined(invoker.clear_sanitizers) && invoker.clear_sanitizers) { |
| 433 is_asan = false | 433 is_asan = false |
| 434 is_cfi = false | 434 is_cfi = false |
| 435 is_lsan = false | 435 is_lsan = false |
| 436 is_msan = false | 436 is_msan = false |
| 437 is_syzyasan = false | 437 is_syzyasan = false |
| 438 is_tsan = false | 438 is_tsan = false |
| 439 is_ubsan = false | 439 is_ubsan = false |
| 440 is_ubsan_vptr = false | 440 is_ubsan_vptr = false |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 477 | 477 |
| 478 forward_variables_from(invoker, | 478 forward_variables_from(invoker, |
| 479 [ | 479 [ |
| 480 "toolchain_cpu", | 480 "toolchain_cpu", |
| 481 "toolchain_os", | 481 "toolchain_os", |
| 482 "use_gold", | 482 "use_gold", |
| 483 "strip", | 483 "strip", |
| 484 ]) | 484 ]) |
| 485 } | 485 } |
| 486 } | 486 } |
| OLD | NEW |