diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-03-03 14:24:09 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-03-03 14:24:09 -0800 |
commit | d5fa14af94faca55237d651d1b63caaf23f0f209 (patch) | |
tree | 6130b691f16dcac2b4f3f480241e335eafc0b253 | |
parent | 1ee2b439f4265d5717a6450e1b26711f0ea85bb6 (diff) | |
parent | 92ac4c40712443bb8e6315110f85078564774528 (diff) |
Merge pull request #894 from waywardmonkeys/output-filename
Print output filename that couldn't be created.
-rw-r--r-- | tools/shared.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/shared.py b/tools/shared.py index aca0677d..f5f6a17b 100644 --- a/tools/shared.py +++ b/tools/shared.py @@ -953,14 +953,14 @@ set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)''' % { 'winfix': '' if not WINDOWS e output_filename = filename + '.o' try_delete(output_filename) Popen([PYTHON, EMCC, filename] + args + ['-o', output_filename], stdout=stdout, stderr=stderr, env=env).communicate() - assert os.path.exists(output_filename), 'emcc could not create output file' + assert os.path.exists(output_filename), 'emcc could not create output file: ' + output_filename @staticmethod def emar(action, output_filename, filenames, stdout=None, stderr=None, env=None): try_delete(output_filename) Popen([PYTHON, EMAR, action, output_filename] + filenames, stdout=stdout, stderr=stderr, env=env).communicate() if 'c' in action: - assert os.path.exists(output_filename), 'emar could not create output file' + assert os.path.exists(output_filename), 'emar could not create output file: ' + output_filename @staticmethod def emscripten(filename, append_ext=True, extra_args=[]): |