Chromium Code Reviews| 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 # PLATFORM SELECTION | 6 # PLATFORM SELECTION |
| 7 # ============================================================================= | 7 # ============================================================================= |
| 8 # | 8 # |
| 9 # There are two main things to set: "os" and "cpu". The "toolchain" is the name | 9 # There are two main things to set: "os" and "cpu". The "toolchain" is the name |
| 10 # of the GN thing that encodes combinations of these things. | 10 # of the GN thing that encodes combinations of these things. |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 177 "Android builds are only supported on Linux and Mac hosts.") | 177 "Android builds are only supported on Linux and Mac hosts.") |
| 178 if (is_clang) { | 178 if (is_clang) { |
| 179 _default_toolchain = "//build/toolchain/android:clang_$target_cpu" | 179 _default_toolchain = "//build/toolchain/android:clang_$target_cpu" |
| 180 } else { | 180 } else { |
| 181 _default_toolchain = "//build/toolchain/android:$target_cpu" | 181 _default_toolchain = "//build/toolchain/android:$target_cpu" |
| 182 } | 182 } |
| 183 } else if (target_os == "chromeos") { | 183 } else if (target_os == "chromeos") { |
| 184 assert(host_os == "linux", | 184 assert(host_os == "linux", |
| 185 "ChromeOS builds are only supported on Linux hosts.") | 185 "ChromeOS builds are only supported on Linux hosts.") |
| 186 if (is_clang) { | 186 if (is_clang) { |
| 187 _default_toolchain = "//build/toolchain/linux:clang_$target_cpu" | 187 _default_toolchain = "//build/toolchain/cros:clang_$target_cpu" |
|
Peter Mayo
2015/11/30 22:11:24
I don't think this is the intent.
Peter Mayo
2015/12/01 00:51:21
I see that without this the other code the other c
| |
| 188 } else { | 188 } else { |
| 189 _default_toolchain = "//build/toolchain/linux:$target_cpu" | 189 _default_toolchain = "//build/toolchain/cros:$target_cpu" |
| 190 } | 190 } |
| 191 } else if (target_os == "ios") { | 191 } else if (target_os == "ios") { |
| 192 _default_toolchain = "//build/toolchain/mac:ios_clang_arm" | 192 _default_toolchain = "//build/toolchain/mac:ios_clang_arm" |
| 193 } else if (target_os == "linux") { | 193 } else if (target_os == "linux") { |
| 194 if (is_clang) { | 194 if (is_clang) { |
| 195 _default_toolchain = "//build/toolchain/linux:clang_$target_cpu" | 195 _default_toolchain = "//build/toolchain/linux:clang_$target_cpu" |
| 196 } else { | 196 } else { |
| 197 _default_toolchain = "//build/toolchain/linux:$target_cpu" | 197 _default_toolchain = "//build/toolchain/linux:$target_cpu" |
| 198 } | 198 } |
| 199 } else if (target_os == "mac") { | 199 } else if (target_os == "mac") { |
| (...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 581 forward_variables_from(invoker, "*") | 581 forward_variables_from(invoker, "*") |
| 582 | 582 |
| 583 # All shared libraries must have the sanitizer deps to properly link in | 583 # All shared libraries must have the sanitizer deps to properly link in |
| 584 # asan mode (this target will be empty in other cases). | 584 # asan mode (this target will be empty in other cases). |
| 585 if (!defined(deps)) { | 585 if (!defined(deps)) { |
| 586 deps = [] | 586 deps = [] |
| 587 } | 587 } |
| 588 deps += [ "//build/config/sanitizers:deps" ] | 588 deps += [ "//build/config/sanitizers:deps" ] |
| 589 } | 589 } |
| 590 } | 590 } |
| OLD | NEW |