aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-04-30 12:30:10 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-04-30 12:30:10 -0700
commit9cd0580f3ce92daec90a0bf0fbdca5034a7929f3 (patch)
treea5b82f16eeba7e6984674182cffa6e8d373895e9 /tools
parent0cbf3f44082077c2ed2afe7f91db68dc53a4c922 (diff)
add support for changing the llvm target using EMCC_LLVM_TARGET in the env
Diffstat (limited to 'tools')
-rw-r--r--tools/shared.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/shared.py b/tools/shared.py
index 6aa20872..a33f16a5 100644
--- a/tools/shared.py
+++ b/tools/shared.py
@@ -397,9 +397,8 @@ except:
# Additional compiler options
-# Target choice. Only one of these must be enabled, and synced with src/settings.js (TARGET_*)
-#LLVM_TARGET = 'le32-unknown-nacl'
-LLVM_TARGET = 'i386-pc-linux-gnu'
+# Target choice. Must be synced with src/settings.js (TARGET_*)
+LLVM_TARGET = os.environ.get('EMCC_LLVM_TARGET') or 'i386-pc-linux-gnu' # 'le32-unknown-nacl'
try:
COMPILER_OPTS # Can be set in EM_CONFIG, optionally