Index: build/common.gypi |
diff --git a/build/common.gypi b/build/common.gypi |
index 21fbb742b43ea80b005b50260b9105794c35615c..0b758fe3bd14dad46fbc131aad01953f0bbf5615 100644 |
--- a/build/common.gypi |
+++ b/build/common.gypi |
@@ -173,8 +173,11 @@ |
'defines': [ |
'V8_TARGET_ARCH_MIPS', |
], |
+ 'variables': { |
+ 'mipscompiler': '<!((echo | $(echo ${CXX:-$(which g++)}) -EL -E - > /dev/null 2>&1) && echo -n "yes" || echo -n "no")', |
palfia
2012/05/02 18:39:21
This command:
echo | $(echo ${CXX:-$(which g++)})
palfia
2012/05/02 18:54:50
Small typo: "-march=mips32r3" should be "-march=mi
|
+ }, |
'conditions': [ |
- [ 'target_arch=="mips"', { |
+ ['mipscompiler=="yes"', { |
'target_conditions': [ |
['_toolset=="target"', { |
'cflags': ['-EL'], |