Skip to content

Commit 07c4544

Browse files
committed
test 5
1 parent 9959f61 commit 07c4544

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

setup.sh

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ sed -i'' -e 's/return JS::GetWeakRefsEnabled() == JS::WeakRefSpecifier::Disabled
6262
sed -i'' -e 's/return !IsIteratorHelpersEnabled()/return false/' ./js/src/vm/GlobalObject.cpp # forcibly enable iterator helpers
6363
sed -i'' -e '/MOZ_CRASH_UNSAFE_PRINTF/,/__PRETTY_FUNCTION__);/d' ./mfbt/LinkedList.h # would crash in Debug Build: in `~LinkedList()` it should have removed all this list's elements before the list's destruction
6464
sed -i'' -e '/MOZ_ASSERT(stackRootPtr == nullptr);/d' ./js/src/vm/JSContext.cpp # would assert false in Debug Build since we extensively use `new JS::Rooted`
65+
sed -i'' -e 's|-id $(abspath $(libdir)|-id $(abspath @rpath|' ./js/src/build/Makefile.in # Set the `install_name` field to use RPATH instead of an absolute path
6566
cd js/src
6667
mkdir -p _build
6768
cd _build
@@ -80,12 +81,12 @@ echo "Done building spidermonkey"
8081
echo "Installing spidermonkey"
8182
# install to ../../../../_spidermonkey_install/
8283
make install
83-
if [[ "$OSTYPE" == "darwin"* ]]; then # macOS
84-
cd ../../../../_spidermonkey_install/lib/
85-
# Set the `install_name` field to use RPATH instead of an absolute path
86-
# overrides https://hg.mozilla.org/releases/mozilla-esr102/file/89d799cb/js/src/build/Makefile.in#l83
87-
llvm-install-name-tool -id @rpath/$(basename ./libmozjs*) ./libmozjs* # making it work for whatever name the libmozjs dylib is called
88-
fi
84+
# if [[ "$OSTYPE" == "darwin"* ]]; then # macOS
85+
# cd ../../../../_spidermonkey_install/lib/
86+
# # Set the `install_name` field to use RPATH instead of an absolute path
87+
# # overrides https://hg.mozilla.org/releases/mozilla-esr102/file/89d799cb/js/src/build/Makefile.in#l83
88+
# llvm-install-name-tool -id @rpath/$(basename ./libmozjs*) ./libmozjs* # making it work for whatever name the libmozjs dylib is called
89+
# fi
8990
echo "Done installing spidermonkey"
9091

9192
# if this is being ran in the root directory of the PythonMonkey repo, then include dev configurations

0 commit comments

Comments
 (0)