aboutsummaryrefslogtreecommitdiff
path: root/tools/shared.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/shared.py')
-rw-r--r--tools/shared.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/shared.py b/tools/shared.py
index 5c19efa8..ba926f72 100644
--- a/tools/shared.py
+++ b/tools/shared.py
@@ -530,7 +530,10 @@ if USE_EMSDK:
] + [
'-U__APPLE__', '-U__linux__'
]
- EMSDK_CXX_OPTS = ['-nostdinc++']
+ if LLVM_TARGET != 'le32-unknown-nacl':
+ EMSDK_CXX_OPTS = ['-nostdinc++'] # le32 target does not need -nostdinc++
+ else:
+ EMSDK_CXX_OPTS = []
COMPILER_OPTS += EMSDK_OPTS
else:
EMSDK_OPTS = []