diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-03-19 16:52:59 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-03-19 16:52:59 -0700 |
commit | f9ef501d57001cce03abe7ed24dcd57e1c421888 (patch) | |
tree | 3d717ef45784eef9245233bbc7d2631c82683afc | |
parent | aaa5e6acf9794a9ed78820f375c5c082e85c039a (diff) |
define -DEMSCRIPTEN even when just configuring, so bundled headers work
-rwxr-xr-x | emcc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -285,7 +285,7 @@ if CONFIGURE_CONFIG or CMAKE_CONFIG: compiler = shared.CLANG if not ('CXXCompiler' in ' '.join(sys.argv) or os.environ.get('EMMAKEN_CXX')): compiler = shared.to_cc(compiler) - cmd = [compiler] + shared.EMSDK_OPTS + sys.argv[1:] + cmd = [compiler] + shared.EMSDK_OPTS + ['-DEMSCRIPTEN'] + sys.argv[1:] if DEBUG: print >> sys.stderr, 'emcc, just configuring: ', ' '.join(cmd) exit(os.execvp(compiler, cmd)) |