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 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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, | 413 forward_variables_from(invoker, |
414 [ | 414 [ |
415 "is_clang", | |
416 "is_component_build", | |
417 "is_nacl_glibc", | |
418 "use_allocator", | 415 "use_allocator", |
419 "use_gold", | 416 "use_gold", |
420 "symbol_level", | 417 "symbol_level", |
421 ]) | 418 ]) |
422 | 419 |
420 if (defined(invoker.is_clang)) { | |
421 is_clang = invoker.is_clang | |
agrieve
2016/05/03 00:14:09
why did these need to be broken out?
brettw
2016/05/03 01:02:44
These are all global variables and in this case we
| |
422 } | |
423 if (defined(invoker.is_component_build)) { | |
424 is_component_build = invoker.is_component_build | |
425 } | |
426 if (defined(invoker.is_nacl_glibc)) { | |
427 is_nacl_glibc = invoker.is_nacl_glibc | |
428 } | |
429 | |
423 if (defined(invoker.clear_sanitizers) && invoker.clear_sanitizers) { | 430 if (defined(invoker.clear_sanitizers) && invoker.clear_sanitizers) { |
424 is_asan = false | 431 is_asan = false |
425 is_cfi = false | 432 is_cfi = false |
426 is_lsan = false | 433 is_lsan = false |
427 is_msan = false | 434 is_msan = false |
428 is_syzyasan = false | 435 is_syzyasan = false |
429 is_tsan = false | 436 is_tsan = false |
430 is_ubsan = false | 437 is_ubsan = false |
431 is_ubsan_vptr = false | 438 is_ubsan_vptr = false |
432 } | 439 } |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
468 | 475 |
469 forward_variables_from(invoker, | 476 forward_variables_from(invoker, |
470 [ | 477 [ |
471 "toolchain_cpu", | 478 "toolchain_cpu", |
472 "toolchain_os", | 479 "toolchain_os", |
473 "use_gold", | 480 "use_gold", |
474 "strip", | 481 "strip", |
475 ]) | 482 ]) |
476 } | 483 } |
477 } | 484 } |
OLD | NEW |