| 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 import("//build/config/nacl/config.gni") | 5 import("//build/config/nacl/config.gni") |
| 6 import("//build/toolchain/ccache.gni") | 6 import("//build/toolchain/ccache.gni") |
| 7 import("//build/toolchain/goma.gni") | 7 import("//build/toolchain/goma.gni") |
| 8 | 8 |
| 9 # This value will be inherited in the toolchain below. | 9 # This value will be inherited in the toolchain below. |
| 10 concurrent_links = exec_script("get_concurrent_links.py", [], "value") | 10 concurrent_links = exec_script("get_concurrent_links.py", [], "value") |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 depfile = "{{output}}.d" | 159 depfile = "{{output}}.d" |
| 160 command = "$cxx -MMD -MF $depfile ${rebuild_string}{{defines}} {{include_d
irs}} {{cflags}} {{cflags_cc}} -c {{source}} -o {{output}}" | 160 command = "$cxx -MMD -MF $depfile ${rebuild_string}{{defines}} {{include_d
irs}} {{cflags}} {{cflags_cc}} -c {{source}} -o {{output}}" |
| 161 depsformat = "gcc" | 161 depsformat = "gcc" |
| 162 description = "CXX {{output}}" | 162 description = "CXX {{output}}" |
| 163 outputs = [ | 163 outputs = [ |
| 164 "{{source_out_dir}}/{{target_output_name}}.{{source_name_part}}.o", | 164 "{{source_out_dir}}/{{target_output_name}}.{{source_name_part}}.o", |
| 165 ] | 165 ] |
| 166 } | 166 } |
| 167 | 167 |
| 168 tool("asm") { | 168 tool("asm") { |
| 169 # For GCC we can just use the C compiler to compile assembly. | 169 # We can just use the C compiler to compile assembly. |
| 170 depfile = "{{output}}.d" | 170 command = "$cc ${rebuild_string}{{defines}} {{include_dirs}} {{asmflags}}
-c {{source}} -o {{output}}" |
| 171 command = "$cc -MMD -MF $depfile ${rebuild_string}{{defines}} {{include_di
rs}} {{asmflags}} -c {{source}} -o {{output}}" | |
| 172 depsformat = "gcc" | |
| 173 description = "ASM {{output}}" | 171 description = "ASM {{output}}" |
| 174 outputs = [ | 172 outputs = [ |
| 175 "{{source_out_dir}}/{{target_output_name}}.{{source_name_part}}.o", | 173 "{{source_out_dir}}/{{target_output_name}}.{{source_name_part}}.o", |
| 176 ] | 174 ] |
| 177 } | 175 } |
| 178 | 176 |
| 179 tool("alink") { | 177 tool("alink") { |
| 180 rspfile = "{{output}}.rsp" | 178 rspfile = "{{output}}.rsp" |
| 181 command = "rm -f {{output}} && $ar rcs {{output}} @$rspfile" | 179 command = "rm -f {{output}} && $ar rcs {{output}} @$rspfile" |
| 182 description = "AR {{output}}" | 180 description = "AR {{output}}" |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 nm = "${toolprefix}nm" | 321 nm = "${toolprefix}nm" |
| 324 | 322 |
| 325 forward_variables_from(invoker, | 323 forward_variables_from(invoker, |
| 326 [ | 324 [ |
| 327 "toolchain_cpu", | 325 "toolchain_cpu", |
| 328 "toolchain_os", | 326 "toolchain_os", |
| 329 "use_gold", | 327 "use_gold", |
| 330 ]) | 328 ]) |
| 331 } | 329 } |
| 332 } | 330 } |
| OLD | NEW |