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/android/config.gni") | 5 import("//build/config/android/config.gni") |
6 import("//build/config/clang/clang.gni") | 6 import("//build/config/clang/clang.gni") |
7 import("//build/config/nacl/config.gni") | 7 import("//build/config/nacl/config.gni") |
8 import("//build/config/sanitizers/sanitizers.gni") | 8 import("//build/config/sanitizers/sanitizers.gni") |
9 import("//build/config/v8_target_cpu.gni") | 9 import("//build/config/v8_target_cpu.gni") |
10 import("//build/toolchain/cc_wrapper.gni") | 10 import("//build/toolchain/cc_wrapper.gni") |
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
546 } else { | 546 } else { |
547 toolprefix = "" | 547 toolprefix = "" |
548 } | 548 } |
549 | 549 |
550 gcc_toolchain(target_name) { | 550 gcc_toolchain(target_name) { |
551 prefix = rebase_path("$clang_base_path/bin", root_build_dir) | 551 prefix = rebase_path("$clang_base_path/bin", root_build_dir) |
552 cc = "$prefix/clang" | 552 cc = "$prefix/clang" |
553 cxx = "$prefix/clang++" | 553 cxx = "$prefix/clang++" |
554 ld = cxx | 554 ld = cxx |
555 readelf = "${toolprefix}readelf" | 555 readelf = "${toolprefix}readelf" |
556 ar = "${toolprefix}ar" | 556 ar = "${prefix}/llvm-ar" |
557 nm = "${toolprefix}nm" | 557 nm = "${toolprefix}nm" |
558 | 558 |
559 forward_variables_from(invoker, | 559 forward_variables_from(invoker, |
560 [ | 560 [ |
561 "strip", | 561 "strip", |
562 "is_clang_analysis_supported", | 562 "is_clang_analysis_supported", |
563 "enable_linker_map", | 563 "enable_linker_map", |
564 ]) | 564 ]) |
565 | 565 |
566 toolchain_args = { | 566 toolchain_args = { |
567 if (defined(invoker.toolchain_args)) { | 567 if (defined(invoker.toolchain_args)) { |
568 forward_variables_from(invoker.toolchain_args, "*") | 568 forward_variables_from(invoker.toolchain_args, "*") |
569 } | 569 } |
570 is_clang = true | 570 is_clang = true |
571 } | 571 } |
572 } | 572 } |
573 } | 573 } |
OLD | NEW |