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/config/compiler/compiler.gni") | 5 import("//build/config/compiler/compiler.gni") |
6 import("//build/config/sysroot.gni") | 6 import("//build/config/sysroot.gni") |
7 import("//build/toolchain/gcc_toolchain.gni") | 7 import("//build/toolchain/gcc_toolchain.gni") |
8 import("//build/toolchain/cros_toolchain.gni") | 8 import("//build/toolchain/cros_toolchain.gni") |
9 | 9 |
10 template("cros_target_toolchain") { | 10 template("cros_target_toolchain") { |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 extra_ldflags = cros_v8_snapshot_extra_ldflags | 115 extra_ldflags = cros_v8_snapshot_extra_ldflags |
116 | 116 |
117 toolchain_args = { | 117 toolchain_args = { |
118 cc_wrapper = "" | 118 cc_wrapper = "" |
119 is_clang = cros_v8_snapshot_is_clang | 119 is_clang = cros_v8_snapshot_is_clang |
120 if (target_cpu == "x86" || target_cpu == "arm" || target_cpu == "mipsel") { | 120 if (target_cpu == "x86" || target_cpu == "arm" || target_cpu == "mipsel") { |
121 current_cpu = "x86" | 121 current_cpu = "x86" |
122 } else { | 122 } else { |
123 current_cpu = "x64" | 123 current_cpu = "x64" |
124 } | 124 } |
125 v8_toolchain_cpu = v8_target_cpu | 125 v8_current_cpu = v8_target_cpu |
126 current_os = "linux" | 126 current_os = "linux" |
127 use_sysroot = false | 127 use_sysroot = false |
128 } | 128 } |
129 } | 129 } |
OLD | NEW |