From a2c5f0750106905b04bad0175a5bd0dfb4b8ac3c Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Sun, 16 Oct 2011 14:08:52 -0700 Subject: [PATCH] allow modifying the compiler in emmaken --- tools/emmaken.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/emmaken.py b/tools/emmaken.py index 4984435a8..c69fc2169 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