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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 } else if (target_os == "chromeos") { | 206 } else if (target_os == "chromeos") { |
207 # See comments in build/toolchain/cros/BUILD.gn about board compiles. | 207 # See comments in build/toolchain/cros/BUILD.gn about board compiles. |
208 assert(host_os == "linux", | 208 assert(host_os == "linux", |
209 "ChromeOS builds are only supported on Linux hosts.") | 209 "ChromeOS builds are only supported on Linux hosts.") |
210 if (is_clang) { | 210 if (is_clang) { |
211 _default_toolchain = "//build/toolchain/cros:clang_target" | 211 _default_toolchain = "//build/toolchain/cros:clang_target" |
212 } else { | 212 } else { |
213 _default_toolchain = "//build/toolchain/cros:target" | 213 _default_toolchain = "//build/toolchain/cros:target" |
214 } | 214 } |
215 } else if (target_os == "ios") { | 215 } else if (target_os == "ios") { |
216 _default_toolchain = "//build/toolchain/mac:ios_clang_arm" | 216 _default_toolchain = "//build/toolchain/mac:ios_clang_$target_cpu" |
217 } else if (target_os == "linux") { | 217 } else if (target_os == "linux") { |
218 if (is_clang) { | 218 if (is_clang) { |
219 _default_toolchain = "//build/toolchain/linux:clang_$target_cpu" | 219 _default_toolchain = "//build/toolchain/linux:clang_$target_cpu" |
220 } else { | 220 } else { |
221 _default_toolchain = "//build/toolchain/linux:$target_cpu" | 221 _default_toolchain = "//build/toolchain/linux:$target_cpu" |
222 } | 222 } |
223 } else if (target_os == "mac") { | 223 } else if (target_os == "mac") { |
224 assert(host_os == "mac", "Mac cross-compiles are unsupported.") | 224 assert(host_os == "mac", "Mac cross-compiles are unsupported.") |
225 _default_toolchain = host_toolchain | 225 _default_toolchain = host_toolchain |
226 } else if (target_os == "win") { | 226 } else if (target_os == "win") { |
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
658 forward_variables_from(invoker, "*", [ "visibility" ]) | 658 forward_variables_from(invoker, "*", [ "visibility" ]) |
659 | 659 |
660 # All shared libraries must have the sanitizer deps to properly link in | 660 # All shared libraries must have the sanitizer deps to properly link in |
661 # asan mode (this target will be empty in other cases). | 661 # asan mode (this target will be empty in other cases). |
662 if (!defined(deps)) { | 662 if (!defined(deps)) { |
663 deps = [] | 663 deps = [] |
664 } | 664 } |
665 deps += [ "//build/config/sanitizers:deps" ] | 665 deps += [ "//build/config/sanitizers:deps" ] |
666 } | 666 } |
667 } | 667 } |
OLD | NEW |