Skip to content

Commit

Permalink
3.1.66.0pre
Browse files Browse the repository at this point in the history
  • Loading branch information
pmp-p committed Aug 23, 2024
1 parent bcc203c commit ba9411c
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 4 deletions.
6 changes: 4 additions & 2 deletions python-wasi-sdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,10 @@ END
${SDKROOT}/python-nim-sdk.sh
fi

# pack extra build scripts
tar -cpRz ./scripts/emsdk-extra.sh ./sources.extra/* > /tmp/sdk/sdk-extra.tar.gz

# pack sdl as minimal prebuilt tar, and use lz4 compression on it
. ${SDKROOT}/scripts/pack-sdk.sh

else
Expand All @@ -223,8 +227,6 @@ END
fi
done

tar -cpRz ./emsdk-extra.sh sources.extra/* > /tmpp/sdk/sdk-extra.tar.gz



exit 0
Expand Down
6 changes: 4 additions & 2 deletions python-wasm-sdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,10 @@ END
${SDKROOT}/python-nim-sdk.sh
fi

# pack extra build scripts
tar -cpRz ./scripts/emsdk-extra.sh ./sources.extra/* > /tmp/sdk/sdk-extra.tar.gz

# pack sdl as minimal prebuilt tar, and use lz4 compression on it
. ${SDKROOT}/scripts/pack-sdk.sh

else
Expand All @@ -223,8 +227,6 @@ END
fi
done

tar -cpRz ./emsdk-extra.sh sources.extra/* > /tmpp/sdk/sdk-extra.tar.gz



exit 0
Expand Down
19 changes: 19 additions & 0 deletions scripts/emsdk-fetch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,28 @@ then
sed -i 's|extern FILE \*const|extern FILE \*|g' cache/sysroot/include/stdio.h

echo "FIXME: Applying https://github.com/emscripten-core/emscripten/pull/20281 dylink.js : handle ** argument case"
if [ -f test/other/test_em_js_side.c b/test/other/test_em_js_side.c ]
then
wget https://patch-diff.githubusercontent.com/raw/emscripten-core/emscripten/pull/20281.diff
patch -p1 < 20281.diff
else
patch -p1 <<END
diff --git a/src/library_dylink.js b/src/library_dylink.js
index 632e20aa61e3..ebb13995d6c3 100644
--- a/src/library_dylink.js
+++ b/src/library_dylink.js
@@ -803,7 +803,7 @@ var LibraryDylink = {
cSig = cSig.split(',');
for (var i in cSig) {
var jsArg = cSig[i].split(' ').pop();
- jsArgs.push(jsArg.replace('*', ''));
+ jsArgs.push(jsArg.replaceAll('*', ''));
}
}
var func = `(${jsArgs}) => ${body};`;
END

fi
echo "FIXME: Applying https://github.com/emscripten-core/emscripten/pull/17956 file corruption when using emscripten_run_preload_plugins with BrowserFS"
wget https://patch-diff.githubusercontent.com/raw/emscripten-core/emscripten/pull/17956.diff

Expand Down

0 comments on commit ba9411c

Please sign in to comment.