Chromium Code Reviews| 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 # This is the normal toolchain for most targets. | 10 # This is the normal toolchain for most targets. |
| 11 gcc_toolchain("target") { | 11 gcc_toolchain("target") { |
| 12 if (cc_wrapper != "") { | |
| 13 compiler_prefix = cc_wrapper + " " | |
| 14 } else { | |
| 15 compiler_prefix = "" | |
| 16 } | |
| 12 ar = cros_target_ar | 17 ar = cros_target_ar |
| 13 cc = cros_target_cc | 18 cc = compiler_prefix + cros_target_cc |
| 14 cxx = cros_target_cxx | 19 cxx = compiler_prefix + cros_target_cxx |
|
dshwang
2016/09/06 15:00:12
exclude target build, because for some reason, ice
| |
| 15 ld = cxx | 20 ld = cxx |
| 16 if (cros_target_ld != "") { | 21 if (cros_target_ld != "") { |
| 17 ld = cros_target_ld | 22 ld = cros_target_ld |
| 18 } | 23 } |
| 19 if (cros_target_nm != "") { | 24 if (cros_target_nm != "") { |
| 20 nm = cros_target_nm | 25 nm = cros_target_nm |
| 21 } | 26 } |
| 22 if (cros_target_readelf != "") { | 27 if (cros_target_readelf != "") { |
| 23 readelf = cros_target_readelf | 28 readelf = cros_target_readelf |
| 24 } | 29 } |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 66 current_cpu = target_cpu | 71 current_cpu = target_cpu |
| 67 current_os = "chromeos" | 72 current_os = "chromeos" |
| 68 is_clang = is_clang | 73 is_clang = is_clang |
| 69 use_debug_fission = false | 74 use_debug_fission = false |
| 70 use_gold = false | 75 use_gold = false |
| 71 use_sysroot = false | 76 use_sysroot = false |
| 72 } | 77 } |
| 73 } | 78 } |
| 74 | 79 |
| 75 gcc_toolchain("host") { | 80 gcc_toolchain("host") { |
| 81 if (cc_wrapper != "") { | |
| 82 compiler_prefix = cc_wrapper + " " | |
| 83 } else { | |
| 84 compiler_prefix = "" | |
| 85 } | |
| 86 | |
| 76 # These are args for the template. | 87 # These are args for the template. |
| 77 ar = cros_host_ar | 88 ar = cros_host_ar |
| 78 cc = cros_host_cc | 89 cc = compiler_prefix + cros_host_cc |
| 79 cxx = cros_host_cxx | 90 cxx = compiler_prefix + cros_host_cxx |
| 80 ld = cxx | 91 ld = cxx |
| 81 if (cros_host_ld != "") { | 92 if (cros_host_ld != "") { |
| 82 ld = cros_host_ld | 93 ld = cros_host_ld |
| 83 } | 94 } |
| 84 if (cros_host_nm != "") { | 95 if (cros_host_nm != "") { |
| 85 nm = cros_host_nm | 96 nm = cros_host_nm |
| 86 } | 97 } |
| 87 if (cros_host_readelf != "") { | 98 if (cros_host_readelf != "") { |
| 88 readelf = cros_host_readelf | 99 readelf = cros_host_readelf |
| 89 } | 100 } |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 127 if (target_cpu == "x86" || target_cpu == "arm" || target_cpu == "mipsel") { | 138 if (target_cpu == "x86" || target_cpu == "arm" || target_cpu == "mipsel") { |
| 128 current_cpu = "x86" | 139 current_cpu = "x86" |
| 129 } else { | 140 } else { |
| 130 current_cpu = "x64" | 141 current_cpu = "x64" |
| 131 } | 142 } |
| 132 v8_current_cpu = v8_target_cpu | 143 v8_current_cpu = v8_target_cpu |
| 133 current_os = "linux" | 144 current_os = "linux" |
| 134 use_sysroot = false | 145 use_sysroot = false |
| 135 } | 146 } |
| 136 } | 147 } |
| OLD | NEW |