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

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

Issue 108513014: Convert clang=1 to the GN build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 | build/gyp_chromium » ('j') | 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 is_win = true 95 is_win = true
96 } else if (os == "mac") { 96 } else if (os == "mac") {
97 is_android = false 97 is_android = false
98 is_chromeos = false 98 is_chromeos = false
99 is_ios = false 99 is_ios = false
100 is_linux = false 100 is_linux = false
101 is_mac = true 101 is_mac = true
102 is_nacl = false 102 is_nacl = false
103 is_posix = true 103 is_posix = true
104 is_win = false 104 is_win = false
105 is_clang = true # Always use clang on Mac. 105 if (!is_clang) {
106 is_clang = true # Always use clang on Mac.
107 }
106 } else if (os == "android") { 108 } else if (os == "android") {
107 is_android = false 109 is_android = false
108 is_chromeos = false 110 is_chromeos = false
109 is_ios = false 111 is_ios = false
110 is_linux = true 112 is_linux = true
111 is_mac = false 113 is_mac = false
112 is_nacl = false 114 is_nacl = false
113 is_posix = true 115 is_posix = true
114 is_win = false 116 is_win = false
115 } else if (os == "chromeos") { 117 } else if (os == "chromeos") {
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 set_default_toolchain("//build/toolchain/linux:arm") 419 set_default_toolchain("//build/toolchain/linux:arm")
418 } else if (build_cpu_arch == "x86") { 420 } else if (build_cpu_arch == "x86") {
419 set_default_toolchain("//build/toolchain/linux:32") 421 set_default_toolchain("//build/toolchain/linux:32")
420 } else if (build_cpu_arch == "x64") { 422 } else if (build_cpu_arch == "x64") {
421 set_default_toolchain("//build/toolchain/linux:64") 423 set_default_toolchain("//build/toolchain/linux:64")
422 } 424 }
423 } else if (is_mac) { 425 } else if (is_mac) {
424 host_toolchain = "//build/toolchain/mac:clang" 426 host_toolchain = "//build/toolchain/mac:clang"
425 set_default_toolchain(host_toolchain) 427 set_default_toolchain(host_toolchain)
426 } 428 }
OLDNEW
« no previous file with comments | « no previous file | build/gyp_chromium » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698