Skip to content

Commit 2049a54

Browse files
committed
[WiP] Set trackUnmanagedFds to false by default
1 parent 4a398bc commit 2049a54

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

build.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,21 @@ node --version
511511
sed -i "/^Libs:/ s/$/${modules//\//\\/}/" $TARGET/lib/pkgconfig/vips.pc
512512
)
513513

514+
patch -p1 -d $EMSDK/upstream/emscripten <<'EOF'
515+
--- a/src/lib/libpthread.js
516+
+++ b/src/lib/libpthread.js
517+
@@ -48,6 +48,7 @@ const pthreadWorkerOptions = `{
518+
// This is the way that we signal to the node worker that it is hosting
519+
// a pthread.
520+
'workerData': 'em-pthread',
521+
+ 'trackUnmanagedFds': false,
522+
#endif
523+
#if ENVIRONMENT_MAY_BE_WEB || ENVIRONMENT_MAY_BE_WORKER
524+
// This is the way that we signal to the Web Worker that it is hosting
525+
EOF
526+
emcc --clear-cache
527+
embuilder build sysroot --force
528+
514529
[ -n "$DISABLE_BINDINGS" ] || (
515530
stage "Compiling JS bindings"
516531
mkdir $DEPS/wasm-vips

0 commit comments

Comments
 (0)