| 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 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 422 if (defined(invoker.symbol_level)) { | 422 if (defined(invoker.symbol_level)) { |
| 423 symbol_level = invoker.symbol_level | 423 symbol_level = invoker.symbol_level |
| 424 } | 424 } |
| 425 if (defined(invoker.use_allocator)) { | 425 if (defined(invoker.use_allocator)) { |
| 426 use_allocator = invoker.use_allocator | 426 use_allocator = invoker.use_allocator |
| 427 } | 427 } |
| 428 if (defined(invoker.use_gold)) { | 428 if (defined(invoker.use_gold)) { |
| 429 use_gold = invoker.use_gold | 429 use_gold = invoker.use_gold |
| 430 } | 430 } |
| 431 | 431 |
| 432 if (defined(invoker.clear_sanitizers) && invoker.clear_sanitizers) { | 432 # Disable sanitizers for non-default toolchains. |
| 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 |
| 441 } | |
| 442 } | 441 } |
| 443 | 442 |
| 444 forward_variables_from(invoker, [ "deps" ]) | 443 forward_variables_from(invoker, [ "deps" ]) |
| 445 } | 444 } |
| 446 } | 445 } |
| 447 | 446 |
| 448 # This is a shorthand for gcc_toolchain instances based on the | 447 # This is a shorthand for gcc_toolchain instances based on the |
| 449 # Chromium-built version of Clang. Only the toolchain_cpu and | 448 # Chromium-built version of Clang. Only the toolchain_cpu and |
| 450 # toolchain_os variables need to be specified by the invoker, and | 449 # toolchain_os variables need to be specified by the invoker, and |
| 451 # optionally toolprefix if it's a cross-compile case. Note that for | 450 # optionally toolprefix if it's a cross-compile case. Note that for |
| (...skipping 25 matching lines...) Expand all Loading... |
| 477 | 476 |
| 478 forward_variables_from(invoker, | 477 forward_variables_from(invoker, |
| 479 [ | 478 [ |
| 480 "toolchain_cpu", | 479 "toolchain_cpu", |
| 481 "toolchain_os", | 480 "toolchain_os", |
| 482 "use_gold", | 481 "use_gold", |
| 483 "strip", | 482 "strip", |
| 484 ]) | 483 ]) |
| 485 } | 484 } |
| 486 } | 485 } |
| OLD | NEW |