aboutsummaryrefslogtreecommitdiff
path: root/emcc
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-03-31 13:49:58 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-03-31 13:49:58 -0700
commitf485a33d653a7c600e94ea99446686c672956751 (patch)
tree30c238bb8747223f88ce0cc841bc94e87fcf0246 /emcc
parent7ffc6a36a2b3ecd04d83e1b5c07a4967e99fbd1b (diff)
fix -M -MM to add emcc compiler flags
Diffstat (limited to 'emcc')
-rwxr-xr-xemcc2
1 files changed, 1 insertions, 1 deletions
diff --git a/emcc b/emcc
index a6cacb39..8f4ed684 100755
--- a/emcc
+++ b/emcc
@@ -361,7 +361,7 @@ for i in range(1, len(sys.argv)):
if '-M' in sys.argv or '-MM' in sys.argv:
# Just output dependencies, do not compile. Warning: clang and gcc behave differently with -MF! (clang seems to not recognize it)
- cmd = [CC] + sys.argv[1:]
+ cmd = [CC] + shared.COMPILER_OPTS + sys.argv[1:]
if DEBUG: print >> sys.stderr, 'emcc, just dependencies: ', ' '.join(cmd)
exit(subprocess.call(cmd))