aboutsummaryrefslogtreecommitdiff
path: root/tools/emmaken.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-03-20 16:03:39 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-03-20 16:03:39 -0700
commitcdc82664d8dfcc4cb8b9df86c24611b723073236 (patch)
treef76ea279d1f2b3299d96430ba4d22dfa8f366449 /tools/emmaken.py
parented9b24c6844c70cee2540a4f1ce60795a7d64f03 (diff)
parentcba66bcb2ae87140d43b85c64a5a8f14fb9fab8a (diff)
Merge pull request #312 from SiggyBar/incoming
Misc fixes for Windows.
Diffstat (limited to 'tools/emmaken.py')
-rwxr-xr-xtools/emmaken.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/emmaken.py b/tools/emmaken.py
index 8e1bfdc8..ae4794f0 100755
--- a/tools/emmaken.py
+++ b/tools/emmaken.py
@@ -113,7 +113,7 @@ if CONFIGURE_CONFIG or CMAKE_CONFIG:
compiler = 'g++' if 'CXXCompiler' in ' '.join(sys.argv) or os.environ.get('EMMAKEN_CXX') else 'gcc'
cmd = [compiler] + EMSDK_OPTS + sys.argv[1:]
print >> sys.stderr, 'emmaken.py, just configuring: ', cmd
- exit(os.execvp(compiler, cmd))
+ exit(subprocess.call(cmd))
try:
#f=open('/dev/shm/tmp/waka.txt', 'a')
@@ -223,7 +223,7 @@ try:
print >> sys.stderr, "Running:", call, ' '.join(newargs)
- os.execvp(call, [call] + newargs)
+ subprocess.call([call] + newargs)
except Exception, e:
print 'Error in emmaken.py. (Is the config file %s set up properly?) Error:' % EM_CONFIG, e
raise