vendor: EMSDK 6.0.6 scripts at e26beb67ef18a37d71d522d8b7096b20a4d3d0f9

This commit is contained in:
Gitea Mirror Bot
2026-08-22 00:06:30 +08:00
commit c47b3c2696
138 changed files with 14232 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
#!/usr/bin/env bash
set -ex
if [ $EUID -eq 0 ]; then
sudo -u nobody `which emcc` --version
fi
which emsdk
node --version
npm --version
python3 --version
pip3 --version
em++ --version
emcc --version
java -version
cmake --version
exit_code=0
# test emcc compilation
echo 'int main() { return 0; }' | emcc -o /tmp/main.js -xc -
node /tmp/main.js || exit_code=$?
if [ $exit_code -ne 0 ]; then
echo "Node exited with non-zero exit code: $exit_code"
exit $exit_code
fi
# test embuilder
embuilder build zlib --force