aboutsummaryrefslogtreecommitdiff
path: root/emcc
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-12-16 17:50:47 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-12-16 17:50:47 -0800
commit49e00037f0d7adefe33fd8f0b967b1920a89e5cc (patch)
treeedf8a9dc0ab30c0af45cdee5c3fcecaee9c99c1c /emcc
parentb01d1845c4a4155db54da713691d86e2d2f42040 (diff)
parentc4ce1f71e699c32f3a50edd06c619a8dc4e768ac (diff)
Merge branch 'em_config' of github.com:juj/emscripten into incoming
Conflicts: emcc
Diffstat (limited to 'emcc')
-rwxr-xr-xemcc11
1 files changed, 11 insertions, 0 deletions
diff --git a/emcc b/emcc
index 1d78baf8..f0c760ab 100755
--- a/emcc
+++ b/emcc
@@ -504,6 +504,12 @@ Options that are modified or new in %s include:
and exit(returncode) capture when running the
generated application through emrun.
+ --em-config Specifies the location of the .emscripten configuration
+ file for the current compiler run. If not specified,
+ the environment variable EM_CONFIG is read for this
+ file, and if that is not set, the default location
+ ~/.emscripten is assumed.
+
The target file, if specified (-o <target>), defines what will
be generated:
@@ -972,6 +978,11 @@ try:
elif newargs[i] == '--emrun':
emrun = True
newargs[i] = ''
+ elif newargs[i] == '--em-config':
+ # This option is parsed in tools/shared.py, here only clean it up from being passed to clang.
+ newargs[i] = ''
+ newargs[i+1] = ''
+
newargs = [ arg for arg in newargs if arg is not '' ]
# If user did not specify a default -std for C++ code, specify the emscripten default.