Index: snapshot_toolchain.gni |
diff --git a/snapshot_toolchain.gni b/snapshot_toolchain.gni |
index 4932110489dd1a7fe65a6124aa655192661d3bd6..4d305a9b2dcd19b8aa29bedc2bd51596556cd0c0 100644 |
--- a/snapshot_toolchain.gni |
+++ b/snapshot_toolchain.gni |
@@ -33,9 +33,17 @@ |
# configurations v8 runs on. |
if (host_cpu == "x64" && host_os == "linux") { |
if (target_cpu == "arm" || target_cpu == "mipsel" || target_cpu == "x86") { |
- snapshot_toolchain = "//build/toolchain/linux:clang_x86" |
+ if (is_clang) { |
slan
2016/03/16 17:40:05
comment from alokp@ in Gerrit Review:
This seems
slan
2016/03/16 17:41:46
That is what I wanted to do, but there seems to be
Dirk Pranke
2016/03/16 22:14:45
You definitely can't use snapshot_toolchain=host_t
|
+ snapshot_toolchain = "//build/toolchain/linux:clang_x86" |
+ } else { |
+ snapshot_toolchain = "//build/toolchain/linux:x86" |
+ } |
} else if (target_cpu == "x64" || target_cpu == "arm64" || target_cpu == "mips64el") { |
- snapshot_toolchain = "//build/toolchain/linux:clang_x64" |
+ if (is_clang) { |
+ snapshot_toolchain = "//build/toolchain/linux:clang_x64" |
+ } else { |
+ snapshot_toolchain = "//build/toolchain/linux:x64" |
+ } |
} else { |
assert(false, "Need environment for this arch: $target_cpu") |
} |