aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAndreas Bergmeier <abergmeier@gmx.net>2013-08-06 19:41:41 +0200
committerAndreas Bergmeier <abergmeier@gmx.net>2013-08-06 19:44:24 +0200
commit475fb2c5b2be0f64858e764d660fe9addd71bcee (patch)
treefb8a768ebc24951e9ae486c53a832d06f2eda758 /tools
parentb94f320c1c954e40e911033c4e11a07492ff86ed (diff)
Enable LLVM_ADD_VERSION and CLANG_ADD_VERSION being set in Emscripten configuration file.
Diffstat (limited to 'tools')
-rw-r--r--tools/shared.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/tools/shared.py b/tools/shared.py
index c0df227d..c3b2da87 100644
--- a/tools/shared.py
+++ b/tools/shared.py
@@ -360,8 +360,15 @@ def check_sanity(force=False):
# Tools/paths
-LLVM_ADD_VERSION = os.getenv('LLVM_ADD_VERSION')
-CLANG_ADD_VERSION = os.getenv('CLANG_ADD_VERSION')
+try:
+ LLVM_ADD_VERSION
+except NameError:
+ LLVM_ADD_VERSION = os.getenv('LLVM_ADD_VERSION')
+
+try:
+ CLANG_ADD_VERSION
+except NameError:
+ CLANG_ADD_VERSION = os.getenv('CLANG_ADD_VERSION')
# Some distributions ship with multiple llvm versions so they add
# the version to the binaries, cope with that