mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
6cfdfb5db2
This moves the creation of both rlbox.wasm.c and rlbox.wasm.h to pre-compile, which allows static-analysis to create both files (but more importantly the .h) without also compiling rlbox.wasm.c, which takes forever. Differential Revision: https://phabricator.services.mozilla.com/D180173
13 lines
393 B
Python
13 lines
393 B
Python
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
import subprocess
|
|
|
|
|
|
def wasm2c(output, wasm2c_bin, wasm_lib):
|
|
output.close()
|
|
return subprocess.run(
|
|
[wasm2c_bin, "-o", output.name, "--disable-simd", wasm_lib]
|
|
).returncode
|