Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4154)

Unified Diff: build/toolchain/cros/BUILD.gn

Issue 2317693002: icecc support for cros host build
Patch Set: add assertion Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/toolchain/cros/BUILD.gn
diff --git a/build/toolchain/cros/BUILD.gn b/build/toolchain/cros/BUILD.gn
index bf139dc12da8192f02bd1e7c83e18c3a77f795a5..f9331b870e969160b0c21e643da126587e08ba7d 100644
--- a/build/toolchain/cros/BUILD.gn
+++ b/build/toolchain/cros/BUILD.gn
@@ -22,6 +22,9 @@ gcc_toolchain("target") {
if (cros_target_readelf != "") {
readelf = cros_target_readelf
}
+ if (cc_wrapper != "") {
+ print("cc_wrapper is not supported on target build. crbug.com/645435")
+ }
extra_cflags = cros_target_extra_cflags
extra_cppflags = cros_target_extra_cppflags
extra_cxxflags = cros_target_extra_cxxflags
@@ -73,10 +76,16 @@ gcc_toolchain("nacl_bootstrap") {
}
gcc_toolchain("host") {
+ if (cc_wrapper != "") {
+ compiler_prefix = cc_wrapper + " "
+ } else {
+ compiler_prefix = ""
+ }
+
# These are args for the template.
ar = cros_host_ar
- cc = cros_host_cc
- cxx = cros_host_cxx
+ cc = compiler_prefix + cros_host_cc
+ cxx = compiler_prefix + cros_host_cxx
ld = cxx
if (cros_host_ld != "") {
ld = cros_host_ld
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698