Don't assert that we only cross compile on linux
authorjochen <jochen@chromium.org>
Fri, 13 Mar 2015 20:49:43 +0000 (13:49 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 13 Mar 2015 20:49:52 +0000 (20:49 +0000)
We also cross compile on Windows for example. Since we can't switch the
toolchain there, we'll just use the 64bit toolchain and produce an
invalid snapshot :-/

BUG=none
R=dpranke@chromium.org
LOG=n
TBR=machenbach@chromium.org

Review URL: https://codereview.chromium.org/1008933002

Cr-Commit-Position: refs/heads/master@{#27192}

BUILD.gn

index 827cd2c366bbdf2a7c4d3cf8792a78b102b7ee2c..8a01e8663b8a8befca740401b3bd6e513596d2f4 100644 (file)
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -32,9 +32,8 @@ v8_toolset_for_d8 = "host"
 # TODO(GYP): For now we only support 32-bit little-endian target builds from an
 # x64 Linux host. Eventually we need to support all of the host/target
 # configurations v8 runs on.
-if (host_cpu == "x64" &&
+if (host_cpu == "x64" && host_os == "linux" &&
     (target_cpu == "arm" || target_cpu == "mipsel" || target_cpu == "x86")) {
-  assert(host_os == "linux")
   snapshot_toolchain = "//build/toolchain/linux:clang_x86"
 } else {
   snapshot_toolchain = default_toolchain