Commit 6ed398b4 by Gordana Cmiljanovic Committed by Milko Leporis

Compile host specific files when cross-compiling

This fixes Chromium (mips64el) cross-comile failure for v8 snapshot for host. Bug: b/115344057, b/117854176 Change-Id: I0a348701151b9db288a3de84ef22c23bbd007a80 Reviewed-on: https://swiftshader-review.googlesource.com/c/22408Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com> Tested-by: 's avatarMilko Leporis <milko.leporis@mips.com>
parent 1147fc2a
...@@ -405,6 +405,11 @@ swiftshader_source_set("swiftshader_llvm") { ...@@ -405,6 +405,11 @@ swiftshader_source_set("swiftshader_llvm") {
} else { } else {
assert(false, "Unsupported target_cpu") assert(false, "Unsupported target_cpu")
} }
if (target_cpu != current_cpu &&
(current_cpu == "x86" || current_cpu == "x64")) {
deps += [ ":swiftshader_llvm_x86" ]
}
} }
swiftshader_source_set("swiftshader_llvm_x86") { swiftshader_source_set("swiftshader_llvm_x86") {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment