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 # ============================================================================= | 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 is_win = false | 154 is_win = false |
155 } else if (os == "ios") { | 155 } else if (os == "ios") { |
156 is_android = false | 156 is_android = false |
157 is_chromeos = false | 157 is_chromeos = false |
158 is_ios = true | 158 is_ios = true |
159 is_linux = false | 159 is_linux = false |
160 is_mac = false | 160 is_mac = false |
161 is_nacl = false | 161 is_nacl = false |
162 is_posix = true | 162 is_posix = true |
163 is_win = false | 163 is_win = false |
164 if (!is_clang) { | |
165 # Always use clang on iOS when using ninja | |
166 # (which is always true when using GN). | |
167 is_clang = true | |
168 } | |
169 } else if (os == "linux") { | 164 } else if (os == "linux") { |
170 is_android = false | 165 is_android = false |
171 is_chromeos = false | 166 is_chromeos = false |
172 is_ios = false | 167 is_ios = false |
173 is_linux = true | 168 is_linux = true |
174 is_mac = false | 169 is_mac = false |
175 is_nacl = false | 170 is_nacl = false |
176 is_posix = true | 171 is_posix = true |
177 is_win = false | 172 is_win = false |
178 } | 173 } |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
440 } else if (is_android) { | 435 } else if (is_android) { |
441 host_toolchain = "//build/toolchain/linux:$build_cpu_arch" | 436 host_toolchain = "//build/toolchain/linux:$build_cpu_arch" |
442 set_default_toolchain("//build/toolchain/android:$cpu_arch") | 437 set_default_toolchain("//build/toolchain/android:$cpu_arch") |
443 } else if (is_linux) { | 438 } else if (is_linux) { |
444 host_toolchain = "//build/toolchain/linux:$build_cpu_arch" | 439 host_toolchain = "//build/toolchain/linux:$build_cpu_arch" |
445 set_default_toolchain("//build/toolchain/linux:$cpu_arch") | 440 set_default_toolchain("//build/toolchain/linux:$cpu_arch") |
446 } else if (is_mac || is_ios) { | 441 } else if (is_mac || is_ios) { |
447 host_toolchain = "//build/toolchain/mac:clang" | 442 host_toolchain = "//build/toolchain/mac:clang" |
448 set_default_toolchain(host_toolchain) | 443 set_default_toolchain(host_toolchain) |
449 } | 444 } |
OLD | NEW |