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/ios/ios_sdk.gni") | 10 import("//build/config/ios/ios_sdk.gni") |
11 | 11 |
12 assert(host_os == "mac") | 12 assert(host_os == "mac") |
13 | 13 |
14 import("//build/toolchain/clang.gni") | |
15 import("//build/toolchain/goma.gni") | 14 import("//build/toolchain/goma.gni") |
16 | 15 |
17 if (use_goma) { | 16 if (use_goma) { |
18 goma_prefix = "$goma_dir/gomacc " | 17 goma_prefix = "$goma_dir/gomacc " |
19 } else { | 18 } else { |
20 goma_prefix = "" | 19 goma_prefix = "" |
21 } | 20 } |
22 | 21 |
23 # This will copy the gyp-mac-tool to the build directory. We pass in the source | 22 # This will copy the gyp-mac-tool to the build directory. We pass in the source |
24 # file of the win tool. | 23 # file of the win tool. |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 } | 246 } |
248 | 247 |
249 mac_toolchain("x64") { | 248 mac_toolchain("x64") { |
250 toolchain_cpu = "x64" | 249 toolchain_cpu = "x64" |
251 toolchain_os = "mac" | 250 toolchain_os = "mac" |
252 cc = "${goma_prefix}/gcc" | 251 cc = "${goma_prefix}/gcc" |
253 cxx = "${goma_prefix}/g++" | 252 cxx = "${goma_prefix}/g++" |
254 ld = cxx | 253 ld = cxx |
255 is_clang = false | 254 is_clang = false |
256 } | 255 } |
OLD | NEW |