зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1571559 - add configuration support for --with-wasi-sysroot; r=nalexander
As part of compiling C/C++ to wasm, we're going to need a wasm-specific sysroot to be provided. This option enables us to specify that sysroot during configure. Differential Revision: https://phabricator.services.mozilla.com/D46314 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
9e9bc31347
Коммит
bc51cbb9da
|
@ -1810,6 +1810,27 @@ def wasm_sandboxing_config_defines():
|
|||
|
||||
wasm_sandboxing_config_defines()
|
||||
|
||||
option('--with-wasi-sysroot',
|
||||
nargs=1,
|
||||
help='Path to wasi sysroot for wasm sandboxing',
|
||||
when=requires_wasm_sandboxing)
|
||||
|
||||
@depends('--with-wasi-sysroot', when=requires_wasm_sandboxing)
|
||||
@imports('os')
|
||||
def wasi_sysroot(wasi_sysroot):
|
||||
if not wasi_sysroot:
|
||||
die('--with-wasi-sysroot must be specified when using wasm sandboxing')
|
||||
|
||||
wasi_sysroot = wasi_sysroot[0]
|
||||
if not os.path.isdir(wasi_sysroot):
|
||||
die('Argument to --with-wasi-sysroot must be a directory')
|
||||
if not os.path.isabs(wasi_sysroot):
|
||||
die('Argument to --with-wasi-sysroot must be an absolute path')
|
||||
|
||||
return wasi_sysroot
|
||||
|
||||
set_config('WASI_SYSROOT', wasi_sysroot)
|
||||
|
||||
|
||||
# new XULStore implementation
|
||||
# ==============================================================
|
||||
|
|
Загрузка…
Ссылка в новой задаче