diff --git a/nix/build-all.py b/nix/build-all.py index fabf1ef730..6623fe1f17 100644 --- a/nix/build-all.py +++ b/nix/build-all.py @@ -1095,7 +1095,8 @@ if "cgal" in targets: gmp_args: "list[str]" = [] mpfr_args: "list[str]" = [] if "wasm" in flags: - gmp_args.extend(("--disable-assembly", "--host", "none", "--enable-cxx")) + # Disable assembly, otherwise `emcc -c conftest.s` will crash due to assembly mismatch. + gmp_args.extend(("--disable-assembly", "--enable-cxx")) mpfr_args.extend(("--host", "none")) OLD_CC = None