diff options
author | Sigmund Vik <sigmund_vik@yahoo.com> | 2012-04-15 01:15:17 +0200 |
---|---|---|
committer | Sigmund Vik <sigmund_vik@yahoo.com> | 2012-04-15 01:15:17 +0200 |
commit | b54f698e3fda6aee49ffc4398b501199055defa6 (patch) | |
tree | 65d24deedaecc50c6ac025d5acdd73e6acabcae9 /tools/shared.py | |
parent | d49fa48f45c8c95df34d32567b783a3cbb5c6469 (diff) |
One more linker stub fix for Windows.
Diffstat (limited to 'tools/shared.py')
-rw-r--r-- | tools/shared.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/shared.py b/tools/shared.py index 3f0d89ec..6f168a36 100644 --- a/tools/shared.py +++ b/tools/shared.py @@ -499,7 +499,7 @@ set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)''' % { 'winfix': '' if not WINDOWS e @staticmethod def link(files, target): try_delete(target) - stub = os.path.join(EMSCRIPTEN_TEMP_DIR, 'stub_deleteme') + stub = os.path.join(EMSCRIPTEN_TEMP_DIR, 'stub_deleteme') + ('.exe' if WINDOWS else '') output = Popen([LLVM_LD, '-disable-opt'] + files + ['-b', target, '-o', stub], stdout=PIPE).communicate()[0] try_delete(stub) # clean up stub left by the linker assert os.path.exists(target) and (output is None or 'Could not open input file' not in output), 'Linking error: ' + output |