Suppress stdout when activating emsdk (flutter/engine#36808)

This commit is contained in:
Harry Terkelsen
2022-10-17 14:32:32 -07:00
committed by GitHub
parent c79513f07c
commit 1793de9e46

View File

@@ -21,14 +21,16 @@ def main():
try:
subprocess.check_call([
sys.executable, EMSDK_PATH, 'install', EMSDK_VERSION
])
],
stdout=subprocess.DEVNULL)
except subprocess.CalledProcessError:
print('Failed to install emsdk')
return 1
try:
subprocess.check_call([
sys.executable, EMSDK_PATH, 'activate', EMSDK_VERSION
])
],
stdout=subprocess.DEVNULL)
except subprocess.CalledProcessError:
print('Failed to activate emsdk')
return 1