Merge pull request #132570 from yu-re-ka/feature/emscripten-bind-cache

emscripten: generate libembind*.a
This commit is contained in:
Gabriel Ebner 2021-08-03 21:05:57 +02:00 committed by GitHub
commit 16240ddd81
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -92,9 +92,11 @@ stdenv.mkDerivation rec {
# wasm2c doesn't work with PIC
$out/bin/emcc -s WASM2C -s STANDALONE_WASM $LTO test.c
for MT in "" "-s USE_PTHREADS"; do
for RELOCATABLE in "" "-s RELOCATABLE"; do
$out/bin/emcc $RELOCATABLE $MT $LTO test.c
for BIND in "" "--bind"; do
for MT in "" "-s USE_PTHREADS"; do
for RELOCATABLE in "" "-s RELOCATABLE"; do
$out/bin/emcc $RELOCATABLE $BIND $MT $LTO test.c
done
done
done
done