aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-10-16 14:08:52 -0700
committerAlon Zakai <alonzakai@gmail.com>2011-10-16 14:08:52 -0700
commita2c5f0750106905b04bad0175a5bd0dfb4b8ac3c (patch)
treef1fce9222383a0ce6927ae1d549fdcd2cf2887cf /tools
parent5d3a70a0feca32c00b97b92686a930d16d9474a3 (diff)
allow modifying the compiler in emmaken
Diffstat (limited to 'tools')
-rwxr-xr-xtools/emmaken.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/emmaken.py b/tools/emmaken.py
index 4984435a..c69fc216 100755
--- a/tools/emmaken.py
+++ b/tools/emmaken.py
@@ -76,7 +76,11 @@ try:
#f.write('Args: ' + ' '.join(sys.argv) + '\nCMake? ' + str(CMAKE_CONFIG) + '\n')
#f.close()
- CXX = CLANG
+ if os.environ.get('EMMAKEN_COMPILER'):
+ CXX = os.environ['EMMAKEN_COMPILER']
+ else:
+ CXX = CLANG
+
CC = to_cc(CXX)
# If we got here from a redirection through emmakenxx.py, then force a C++ compiler here