Skip to content

Commit d0d8bff

Browse files
committed
fix(setup.sh): forcibly compile SpiderMonkey to clang's (cross-)compilation target setup
If the target triple is different even by the `vendor` parameter, it be treated differently, and fatal error: 'type_traits' file not found #include <type_traits> See https://clang.llvm.org/docs/CrossCompilation.html#target-triple
1 parent 3d02051 commit d0d8bff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ cd js/src
7575
mkdir -p _build
7676
cd _build
7777
mkdir -p ../../../../_spidermonkey_install/
78-
../configure \
78+
../configure --target=$(clang --print-target-triple) \
7979
--prefix=$(realpath $PWD/../../../../_spidermonkey_install) \
8080
--with-intl-api \
8181
$(if [[ "$OSTYPE" != "msys"* ]]; then echo "--without-system-zlib"; fi) \

0 commit comments

Comments
 (0)