From 03b6b5d4c8920e801c751a75b1a80d43d9e900fd Mon Sep 17 00:00:00 2001 From: Ryan Saweczko Date: Wed, 11 Feb 2026 11:55:31 -0500 Subject: [PATCH 1/2] Stop using ld64 --- setup.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/setup.sh b/setup.sh index 3096525f..08f084e6 100755 --- a/setup.sh +++ b/setup.sh @@ -77,7 +77,6 @@ mkdir -p ../../../../_spidermonkey_install/ --disable-debug-symbols \ --disable-jemalloc \ --disable-tests \ - $(if [[ "$OSTYPE" == "darwin"* ]]; then echo "--enable-linker=ld64"; fi) \ --enable-optimize \ --disable-explicit-resource-management # disable-explicit-resource-management: Disable the `using` syntax that is enabled by default in SpiderMonkey nightly, otherwise the header files will disagree with the compiled lib .so file From 68e3a301b1f71ecd4ab4fc8591bb14d8885a767d Mon Sep 17 00:00:00 2001 From: Ryan Saweczko Date: Wed, 11 Feb 2026 14:15:52 -0500 Subject: [PATCH 2/2] Add headerpad to compile flags based on CI error message --- setup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.sh b/setup.sh index 08f084e6..bb727ffa 100755 --- a/setup.sh +++ b/setup.sh @@ -78,7 +78,7 @@ mkdir -p ../../../../_spidermonkey_install/ --disable-jemalloc \ --disable-tests \ --enable-optimize \ - --disable-explicit-resource-management + --disable-explicit-resource-management \ # disable-explicit-resource-management: Disable the `using` syntax that is enabled by default in SpiderMonkey nightly, otherwise the header files will disagree with the compiled lib .so file # when it's using a `IF_EXPLICIT_RESOURCE_MANAGEMENT` macro, e.g., the `enum JSProtoKey` index would be off by 1 (header `JSProto_Uint8Array` 27 will be interpreted as `JSProto_Int8Array` in lib as lib has an extra element) # https://bugzilla.mozilla.org/show_bug.cgi?id=1940342 @@ -87,7 +87,7 @@ echo "Done building spidermonkey" echo "Installing spidermonkey" # install to ../../../../_spidermonkey_install/ -make install +make install -headerpad_max_install_names if [[ "$OSTYPE" == "darwin"* ]]; then # macOS cd ../../../../_spidermonkey_install/lib/ # Set the `install_name` field to use RPATH instead of an absolute path