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 # TODO(brettw) Use "gcc_toolchain.gni" like the Linux toolchains. This requires | 5 # TODO(brettw) Use "gcc_toolchain.gni" like the Linux toolchains. This requires |
6 # some enhancements since the commands on Mac are slightly different than on | 6 # some enhancements since the commands on Mac are slightly different than on |
7 # Linux. | 7 # Linux. |
8 | 8 |
9 import("../goma.gni") | 9 import("../goma.gni") |
10 import("//build/config/mac/mac_sdk.gni") | 10 import("//build/config/mac/mac_sdk.gni") |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 is_clang = invoker.is_clang | 216 is_clang = invoker.is_clang |
217 } | 217 } |
218 } | 218 } |
219 } | 219 } |
220 } | 220 } |
221 | 221 |
222 # Toolchain used for Mac host targets. | 222 # Toolchain used for Mac host targets. |
223 mac_toolchain("clang_x64") { | 223 mac_toolchain("clang_x64") { |
224 toolchain_cpu = "x64" | 224 toolchain_cpu = "x64" |
225 toolchain_os = "mac" | 225 toolchain_os = "mac" |
226 prefix = rebase_path("//buildtools/toolchain/clang+llvm-x86_64-darwin/bin", | 226 prefix = rebase_path("//buildtools/mac-x64/clang/bin", root_build_dir) |
227 root_build_dir) | |
228 cc = "${goma_prefix}$prefix/clang" | 227 cc = "${goma_prefix}$prefix/clang" |
229 cxx = "${goma_prefix}$prefix/clang++" | 228 cxx = "${goma_prefix}$prefix/clang++" |
230 ar = "${prefix}/llvm-ar" | 229 ar = "${prefix}/llvm-ar" |
231 ld = cxx | 230 ld = cxx |
232 strip = "strip" | 231 strip = "strip" |
233 is_clang = true | 232 is_clang = true |
234 sysroot_flags = "-isysroot $mac_sdk_path -mmacosx-version-min=$mac_sdk_min" | 233 sysroot_flags = "-isysroot $mac_sdk_path -mmacosx-version-min=$mac_sdk_min" |
235 } | 234 } |
236 | 235 |
237 # Toolchain used for Mac host (i386) targets. | 236 # Toolchain used for Mac host (i386) targets. |
238 mac_toolchain("clang_x86") { | 237 mac_toolchain("clang_x86") { |
239 toolchain_cpu = "i386" | 238 toolchain_cpu = "i386" |
240 toolchain_os = "mac" | 239 toolchain_os = "mac" |
241 prefix = rebase_path("//buildtools/toolchain/clang+llvm-x86_64-darwin/bin", | 240 prefix = rebase_path("//buildtools/mac-x64/clang/bin", root_build_dir) |
242 root_build_dir) | |
243 cc = "${goma_prefix}$prefix/clang" | 241 cc = "${goma_prefix}$prefix/clang" |
244 cxx = "${goma_prefix}$prefix/clang++" | 242 cxx = "${goma_prefix}$prefix/clang++" |
245 ar = "${prefix}/llvm-ar" | 243 ar = "${prefix}/llvm-ar" |
246 ld = cxx | 244 ld = cxx |
247 strip = "strip" | 245 strip = "strip" |
248 is_clang = true | 246 is_clang = true |
249 sysroot_flags = "-isysroot $mac_sdk_path -mmacosx-version-min=$mac_sdk_min" | 247 sysroot_flags = "-isysroot $mac_sdk_path -mmacosx-version-min=$mac_sdk_min" |
250 } | 248 } |
OLD | NEW |