diff options
author | Ehsan Akhgari <ehsan.akhgari@gmail.com> | 2012-02-08 16:28:03 -0500 |
---|---|---|
committer | Ehsan Akhgari <ehsan.akhgari@gmail.com> | 2012-02-08 18:52:19 -0500 |
commit | 96dfd8be059f1657e217177a9cc3cbe5e8d9aa46 (patch) | |
tree | ff9b5cbe361238031d67636036913354e1725bcd /tools/shared.py | |
parent | 1506ae0d6dc95f9d16cd1eb7a1e3f480fbeaca24 (diff) |
Add a test for handling of multiply defined symbols
Diffstat (limited to 'tools/shared.py')
-rw-r--r-- | tools/shared.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/shared.py b/tools/shared.py index 832dcb26..56a404fb 100644 --- a/tools/shared.py +++ b/tools/shared.py @@ -547,6 +547,13 @@ set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)'''.replace('$EMSCRIPTEN_ROOT', path_ assert os.path.exists(output_filename), 'emcc could not create output file' @staticmethod + def emar(action, output_filename, filenames, stdout=None, stderr=None, env=None): + try_delete(output_filename) + Popen([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' + + @staticmethod def emscripten(filename, append_ext=True, extra_args=[]): # Allow usage of emscripten.py without warning os.environ['EMSCRIPTEN_SUPPRESS_USAGE_WARNING'] = '1' |