OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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/toolchain/clang.gni") | |
6 import("//build/toolchain/gcc_toolchain.gni") | 5 import("//build/toolchain/gcc_toolchain.gni") |
7 | 6 |
8 declare_args() { | 7 declare_args() { |
9 # The CrOS build system supports many different kinds of targets across | 8 # The CrOS build system supports many different kinds of targets across |
10 # many different architectures. Bringing your own toolchain is also supported, | 9 # many different architectures. Bringing your own toolchain is also supported, |
11 # so it's actually impossible to enumerate all toolchains for all targets | 10 # so it's actually impossible to enumerate all toolchains for all targets |
12 # as GN toolchain specifications. | 11 # as GN toolchain specifications. |
13 # These arguments provide a mechanism for specifying your CC, CXX and AR at | 12 # These arguments provide a mechanism for specifying your CC, CXX and AR at |
14 # buildfile-generation time, allowing the CrOS build system to always use | 13 # buildfile-generation time, allowing the CrOS build system to always use |
15 # the right tools for the current target. | 14 # the right tools for the current target. |
(...skipping 10 matching lines...) Expand all Loading... |
26 cc = "${cros_target_cc}" | 25 cc = "${cros_target_cc}" |
27 cxx = "${cros_target_cxx}" | 26 cxx = "${cros_target_cxx}" |
28 | 27 |
29 ar = "${cros_target_ar}" | 28 ar = "${cros_target_ar}" |
30 ld = cxx | 29 ld = cxx |
31 | 30 |
32 toolchain_cpu = "${target_cpu}" | 31 toolchain_cpu = "${target_cpu}" |
33 toolchain_os = "linux" | 32 toolchain_os = "linux" |
34 is_clang = is_clang | 33 is_clang = is_clang |
35 } | 34 } |
OLD | NEW |