Specify the OS default temp directory as the temp dir for the sdk.

This commit is contained in:
Jukka Jylänki
2013-10-23 13:17:39 +03:00
parent 886fe44124
commit 1e149a19e7

4
emsdk
View File

@@ -1,6 +1,6 @@
#!/usr/bin/env python
import sys, optparse, subprocess, urllib2, os, os.path, errno, zipfile, string, json, platform, shutil, tarfile, urlparse
import sys, optparse, subprocess, urllib2, os, os.path, errno, zipfile, string, json, platform, shutil, tarfile, urlparse, tempfile
# EMSDK_DEV is a developer mode flag, which, if true, the SDK is downloaded from a 'staging' online source,
# instead of the public source. New releases are first deployed to the staging source for testing, before
@@ -326,7 +326,7 @@ JS_ENGINES = [NODE_JS]
cfg += '''SPIDERMONKEY_ENGINE = ''
V8_ENGINE = ''
TEMP_DIR = ''' + "'" + sdk_path(temp_dir) + "'" + '''
TEMP_DIR = ''' + "'" + tempfile.gettempdir().replace('\\', '/') + "'" + '''
COMPILER_ENGINE = NODE_JS
JS_ENGINES = [NODE_JS]
'''