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

Side by Side Diff: build/config/BUILDCONFIG.gn

Issue 426533003: Use clang as host compiler on android with gn too. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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 # ============================================================================= 5 # =============================================================================
6 # BUILD FLAGS 6 # BUILD FLAGS
7 # ============================================================================= 7 # =============================================================================
8 # 8 #
9 # This block lists input arguments to the build, along with their default 9 # This block lists input arguments to the build, along with their default
10 # values. GN requires listing them explicitly so it can validate input and have 10 # values. GN requires listing them explicitly so it can validate input and have
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 host_toolchain = "//build/toolchain/win:32" 448 host_toolchain = "//build/toolchain/win:32"
449 } 449 }
450 450
451 if (cpu_arch == "x64") { 451 if (cpu_arch == "x64") {
452 set_default_toolchain("//build/toolchain/win:64") 452 set_default_toolchain("//build/toolchain/win:64")
453 } else if (cpu_arch == "x86") { 453 } else if (cpu_arch == "x86") {
454 set_default_toolchain("//build/toolchain/win:32") 454 set_default_toolchain("//build/toolchain/win:32")
455 } 455 }
456 } else if (is_android) { 456 } else if (is_android) {
457 # Use clang for the x86/64 Linux host builds. 457 # Use clang for the x86/64 Linux host builds.
458 # (Disabled until the Clang build works properly.) 458 if (build_cpu_arch == "x86" || build_cpu_arch == "x64") {
459 #if (build_cpu_arch == "x86" || build_cpu_arch == "x64") { 459 host_toolchain = "//build/toolchain/linux:clang_$build_cpu_arch"
460 # host_toolchain = "//build/toolchain/linux:clang_$build_cpu_arch" 460 } else {
461 #} else {
462 host_toolchain = "//build/toolchain/linux:$build_cpu_arch" 461 host_toolchain = "//build/toolchain/linux:$build_cpu_arch"
463 #} 462 }
464 set_default_toolchain("//build/toolchain/android:$cpu_arch") 463 set_default_toolchain("//build/toolchain/android:$cpu_arch")
465 } else if (is_linux) { 464 } else if (is_linux) {
466 if (is_clang) { 465 if (is_clang) {
467 host_toolchain = "//build/toolchain/linux:clang_$build_cpu_arch" 466 host_toolchain = "//build/toolchain/linux:clang_$build_cpu_arch"
468 set_default_toolchain("//build/toolchain/linux:clang_$cpu_arch") 467 set_default_toolchain("//build/toolchain/linux:clang_$cpu_arch")
469 } else { 468 } else {
470 host_toolchain = "//build/toolchain/linux:$build_cpu_arch" 469 host_toolchain = "//build/toolchain/linux:$build_cpu_arch"
471 set_default_toolchain("//build/toolchain/linux:$cpu_arch") 470 set_default_toolchain("//build/toolchain/linux:$cpu_arch")
472 } 471 }
473 } else if (is_mac) { 472 } else if (is_mac) {
474 host_toolchain = "//build/toolchain/mac:clang" 473 host_toolchain = "//build/toolchain/mac:clang"
475 set_default_toolchain(host_toolchain) 474 set_default_toolchain(host_toolchain)
476 } else if (is_ios) { 475 } else if (is_ios) {
477 host_toolchain = "//build/toolchain/mac:host_clang" 476 host_toolchain = "//build/toolchain/mac:host_clang"
478 set_default_toolchain("//build/toolchain/mac:clang") 477 set_default_toolchain("//build/toolchain/mac:clang")
479 } 478 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698