aboutsummaryrefslogtreecommitdiff
path: root/tools/shared.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/shared.py')
-rw-r--r--tools/shared.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/shared.py b/tools/shared.py
index c02c0ac3..dc84bce3 100644
--- a/tools/shared.py
+++ b/tools/shared.py
@@ -547,6 +547,9 @@ set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)'''.replace('$EMSCRIPTEN_ROOT', path_
@staticmethod
def emscripten(filename, append_ext=True, extra_args=[]):
+ # Allow usage of emscripten.py without warning
+ os.environ['EMSCRIPTEN_SUPPRESS_USAGE_WARNING'] = '1'
+
# Run Emscripten
settings = Settings.serialize()
compiler_output = timeout_run(Popen(['python', EMSCRIPTEN, filename + ('.o.ll' if append_ext else ''), '-o', filename + '.o.js'] + settings + extra_args, stdout=PIPE), None, 'Compiling')