mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 01:05:45 +00:00
92e5beb60a
This patch is not ideal: if would be better to do the defaulting in `toolkit/moz.configure`, but doing it there runs into problems with base toolchain configurations, as the clang there is not new enough. So we have this, doing everything with environment variables, which is easily turned on or off, depending on the needs of the specific configuration. The `mozconfig.no-compile` change is not really needed, as the wasm sandboxing detection bits are not conditional on `--enable-compile-environment`. Those bits should be, and I will tackle doing that after the holidays. Differential Revision: https://phabricator.services.mozilla.com/D58102 --HG-- extra : moz-landing-system : lando
14 lines
525 B
Plaintext
14 lines
525 B
Plaintext
# Tell the build system about bits to build sandboxed wasm libraries.
|
|
case "$PERFHERDER_EXTRA_OPTIONS" in
|
|
base-toolchains*)
|
|
# Clang versions < 8.0 don't support wasm.
|
|
;;
|
|
*)
|
|
export WASM_SANDBOXED_LIBRARIES=graphite
|
|
export WASM_CC="${MOZ_FETCHES_DIR}/clang/bin/clang --target=wasm32-wasi"
|
|
export WASM_CXX="${MOZ_FETCHES_DIR}/clang/bin/clang++ --target=wasm32-wasi"
|
|
export LUCETC="${MOZ_FETCHES_DIR}/lucetc/lucetc"
|
|
export WASI_SYSROOT="${MOZ_FETCHES_DIR}/wasi-sysroot/share/wasi-sysroot"
|
|
;;
|
|
esac
|