Index: BUILD.gn |
diff --git a/BUILD.gn b/BUILD.gn |
index 4e2c2b9aacb7fb93d69c0ff84cce099e0e81a49a..5c5672c3a78aa28b4c46f305815678d0de79f29d 100644 |
--- a/BUILD.gn |
+++ b/BUILD.gn |
@@ -236,6 +236,13 @@ config("toolchain") { |
defines += [ "V8_TARGET_ARCH_ARM64" ] |
} |
+ # Mips64el/mipsel simulators. Comparing target cpu with v8 target cpu to |
+ # not affect simulator builds for making cross-compile snapshots. |
+ if (target_cpu != v8_target_cpu && |
Michael Achenbach
2016/09/09 12:32:24
CC also Dirk. Want to make sure that this expresse
Dirk Pranke
2016/09/09 20:00:45
I'm not sure I understand the intent of this block
Michael Achenbach
2016/09/12 08:11:29
Close. We want to set the define when the _target_
Dirk Pranke
2016/09/12 21:19:44
Got it, right.
Maybe create a separate top-level
Michael Achenbach
2016/09/13 07:12:56
Done
|
+ (v8_current_cpu == "mipsel" || v8_current_cpu == "mips64el")) { |
Michael Achenbach
2016/09/09 09:54:27
We set this for target simulator build in gyp here
vogelheim
2016/09/09 10:56:37
Might matter.
(This affects code generation, and
|
+ defines += [ "_MIPS_TARGET_SIMULATOR" ] |
+ } |
+ |
# TODO(jochen): Add support for mips. |
if (v8_current_cpu == "mipsel") { |
defines += [ "V8_TARGET_ARCH_MIPS" ] |