aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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