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/config/sanitizers/sanitizers.gni") | 6 import("//build/config/sanitizers/sanitizers.gni") |
7 import("//build/toolchain/ccache.gni") | 7 import("//build/toolchain/ccache.gni") |
8 import("//build/toolchain/goma.gni") | 8 import("//build/toolchain/goma.gni") |
9 import("//build/toolchain/toolchain.gni") | 9 import("//build/toolchain/toolchain.gni") |
10 | 10 |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 "//third_party/llvm-build/Release+Asserts/lib/LLVMgold.so", | 221 "//third_party/llvm-build/Release+Asserts/lib/LLVMgold.so", |
222 root_build_dir) | 222 root_build_dir) |
223 arflags = "--plugin \"$gold_plugin_path\"" | 223 arflags = "--plugin \"$gold_plugin_path\"" |
224 } | 224 } |
225 | 225 |
226 # This needs a Python script to avoid using simple sh features in this | 226 # This needs a Python script to avoid using simple sh features in this |
227 # command, in case the host does not use a POSIX shell (e.g. compiling | 227 # command, in case the host does not use a POSIX shell (e.g. compiling |
228 # POSIX-like toolchains such as NaCl on Windows). | 228 # POSIX-like toolchains such as NaCl on Windows). |
229 ar_wrapper = | 229 ar_wrapper = |
230 rebase_path("//build/toolchain/gcc_ar_wrapper.py", root_build_dir) | 230 rebase_path("//build/toolchain/gcc_ar_wrapper.py", root_build_dir) |
231 command = "$python_path \"$ar_wrapper\" --output={{output}} --ar=\"$ar\" $
arflags rcs @\"$rspfile\"" | 231 command = "$python_path \"$ar_wrapper\" --output={{output}} --ar=\"$ar\" $
arflags rcsD @\"$rspfile\"" |
232 description = "AR {{output}}" | 232 description = "AR {{output}}" |
233 rspfile_content = "{{inputs}}" | 233 rspfile_content = "{{inputs}}" |
234 outputs = [ | 234 outputs = [ |
235 "{{target_out_dir}}/{{target_output_name}}{{output_extension}}", | 235 "{{target_out_dir}}/{{target_output_name}}{{output_extension}}", |
236 ] | 236 ] |
237 default_output_extension = ".a" | 237 default_output_extension = ".a" |
238 output_prefix = "lib" | 238 output_prefix = "lib" |
239 } | 239 } |
240 | 240 |
241 tool("solink") { | 241 tool("solink") { |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
456 nm = "${toolprefix}nm" | 456 nm = "${toolprefix}nm" |
457 | 457 |
458 forward_variables_from(invoker, | 458 forward_variables_from(invoker, |
459 [ | 459 [ |
460 "toolchain_cpu", | 460 "toolchain_cpu", |
461 "toolchain_os", | 461 "toolchain_os", |
462 "use_gold", | 462 "use_gold", |
463 ]) | 463 ]) |
464 } | 464 } |
465 } | 465 } |
OLD | NEW |