Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(856)

Side by Side Diff: build/toolchain/gcc_toolchain.gni

Issue 2766333002: Use llvm-ar when building with Clang. (Closed)
Patch Set: Move a comment Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « build/config/posix/BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « build/config/posix/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698