| 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") |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 tool("copy") { | 230 tool("copy") { |
| 231 command = copy_command | 231 command = copy_command |
| 232 description = copy_description | 232 description = copy_description |
| 233 } | 233 } |
| 234 | 234 |
| 235 toolchain_args() { | 235 toolchain_args() { |
| 236 current_cpu = invoker.toolchain_cpu | 236 current_cpu = invoker.toolchain_cpu |
| 237 current_os = invoker.toolchain_os | 237 current_os = invoker.toolchain_os |
| 238 | 238 |
| 239 # These values need to be passed through unchanged. | 239 # These values need to be passed through unchanged. |
| 240 host_toolchain = host_toolchain |
| 240 target_os = target_os | 241 target_os = target_os |
| 241 target_cpu = target_cpu | 242 target_cpu = target_cpu |
| 242 | 243 |
| 243 if (defined(invoker.is_clang)) { | 244 if (defined(invoker.is_clang)) { |
| 244 is_clang = invoker.is_clang | 245 is_clang = invoker.is_clang |
| 245 } | 246 } |
| 246 } | 247 } |
| 247 } | 248 } |
| 248 } | 249 } |
| 249 | 250 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 } | 295 } |
| 295 | 296 |
| 296 mac_toolchain("x64") { | 297 mac_toolchain("x64") { |
| 297 toolchain_cpu = "x64" | 298 toolchain_cpu = "x64" |
| 298 toolchain_os = "mac" | 299 toolchain_os = "mac" |
| 299 cc = "${goma_prefix}/gcc" | 300 cc = "${goma_prefix}/gcc" |
| 300 cxx = "${goma_prefix}/g++" | 301 cxx = "${goma_prefix}/g++" |
| 301 ld = cxx | 302 ld = cxx |
| 302 is_clang = false | 303 is_clang = false |
| 303 } | 304 } |
| OLD | NEW |