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 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
467 use_gold = invoker.use_gold | 467 use_gold = invoker.use_gold |
468 } | 468 } |
469 if (defined(invoker.use_sysroot)) { | 469 if (defined(invoker.use_sysroot)) { |
470 use_sysroot = invoker.use_sysroot | 470 use_sysroot = invoker.use_sysroot |
471 } | 471 } |
472 if (defined(invoker.v8_toolchain_cpu)) { | 472 if (defined(invoker.v8_toolchain_cpu)) { |
473 v8_current_cpu = invoker.v8_toolchain_cpu | 473 v8_current_cpu = invoker.v8_toolchain_cpu |
474 } else { | 474 } else { |
475 v8_current_cpu = current_cpu | 475 v8_current_cpu = current_cpu |
476 } | 476 } |
477 | |
478 # Disable sanitizers for non-default toolchains. | |
479 is_asan = false | |
480 is_cfi = false | |
481 is_lsan = false | |
482 is_msan = false | |
483 is_syzyasan = false | |
484 is_tsan = false | |
485 is_ubsan = false | |
486 is_ubsan_null = false | |
487 is_ubsan_no_recover = false | |
488 is_ubsan_security = false | |
489 is_ubsan_vptr = false | |
490 msan_track_origins = 0 | |
491 sanitizer_coverage_flags = "" | |
492 use_cfi_diag = false | |
493 use_custom_libcxx = false | |
494 use_drfuzz = false | |
495 use_libfuzzer = false | |
496 use_prebuilt_instrumented_libraries = false | |
497 use_locally_built_instrumented_libraries = false | |
498 use_sanitizer_coverage = false | |
499 } | 477 } |
500 | 478 |
501 forward_variables_from(invoker, [ "deps" ]) | 479 forward_variables_from(invoker, [ "deps" ]) |
502 } | 480 } |
503 } | 481 } |
504 | 482 |
505 # This is a shorthand for gcc_toolchain instances based on the | 483 # This is a shorthand for gcc_toolchain instances based on the |
506 # Chromium-built version of Clang. Only the toolchain_cpu and | 484 # Chromium-built version of Clang. Only the toolchain_cpu and |
507 # toolchain_os variables need to be specified by the invoker, and | 485 # toolchain_os variables need to be specified by the invoker, and |
508 # optionally toolprefix if it's a cross-compile case. Note that for | 486 # optionally toolprefix if it's a cross-compile case. Note that for |
(...skipping 29 matching lines...) Expand all Loading... |
538 "toolchain_os", | 516 "toolchain_os", |
539 "use_gold", | 517 "use_gold", |
540 "v8_toolchain_cpu", | 518 "v8_toolchain_cpu", |
541 ]) | 519 ]) |
542 | 520 |
543 if (defined(invoker.use_debug_fission)) { | 521 if (defined(invoker.use_debug_fission)) { |
544 use_debug_fission = invoker.use_debug_fission | 522 use_debug_fission = invoker.use_debug_fission |
545 } | 523 } |
546 } | 524 } |
547 } | 525 } |
OLD | NEW |