Commit 07544c63 authored by Mike Hommey's avatar Mike Hommey
Browse files

Bug 1804548 - Fail early when trying to cross-compile with wasm sandboxing on...

Bug 1804548 - Fail early when trying to cross-compile with wasm sandboxing on Windows. r=firefox-build-system-reviewers,nalexander

Differential Revision: https://phabricator.services.mozilla.com/D164136
parent 1e2afe6c
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -2389,8 +2389,14 @@ option(
)


@depends("--with-wasm-sandboxed-libraries")
def requires_wasm_sandboxing(libraries):
@depends("--with-wasm-sandboxed-libraries", target, host)
def requires_wasm_sandboxing(libraries, target, host):
    if target.kernel == "WINNT" and host.kernel == "WINNT" and target.cpu != host.cpu:
        # Bug 1741233
        die(
            f"Wasm sandboxing is not supported yet when building for {target.cpu} on {host.cpu} Windows. "
            "Please use --without-wasm-sandboxed-libraries for now."
        )
    if libraries:
        return True