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 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | 477 |
478 # TODO(crbug.com/625353) - Delete after v8 has been updated | |
479 # to only refer to v8_current_cpu. Until then, we need to make | |
480 # sure that v8_current_cpu always has the same value as v8_target_cpu, | |
481 # so that //build defines evaluate the way v8 is expecting them to. | |
482 v8_current_cpu = v8_target_cpu | |
483 | |
484 # Disable sanitizers for non-default toolchains. | 478 # Disable sanitizers for non-default toolchains. |
485 is_asan = false | 479 is_asan = false |
486 is_cfi = false | 480 is_cfi = false |
487 is_lsan = false | 481 is_lsan = false |
488 is_msan = false | 482 is_msan = false |
489 is_syzyasan = false | 483 is_syzyasan = false |
490 is_tsan = false | 484 is_tsan = false |
491 is_ubsan = false | 485 is_ubsan = false |
492 is_ubsan_null = false | 486 is_ubsan_null = false |
493 is_ubsan_no_recover = false | 487 is_ubsan_no_recover = false |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
543 "toolchain_os", | 537 "toolchain_os", |
544 "use_gold", | 538 "use_gold", |
545 "v8_toolchain_cpu", | 539 "v8_toolchain_cpu", |
546 ]) | 540 ]) |
547 | 541 |
548 if (defined(invoker.use_debug_fission)) { | 542 if (defined(invoker.use_debug_fission)) { |
549 use_debug_fission = invoker.use_debug_fission | 543 use_debug_fission = invoker.use_debug_fission |
550 } | 544 } |
551 } | 545 } |
552 } | 546 } |
OLD | NEW |