Skip to content

Commit e75adb2

Browse files
committed
add script for making prebuild packages
1 parent bf9b4d3 commit e75adb2

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,4 @@ compile_commands.json
3333
.cache/
3434
example/dist
3535
broken_example/dist
36+
prebuild

make_prebuild.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env bash
2+
set -e
3+
rm -rf ./prebuild/wasm32-unknown-unknown-libcxx
4+
mkdir -p ./prebuild
5+
cmake -GNinja -S. -Bprebuild/build -DCMAKE_INSTALL_PREFIX=$(pwd)/prebuild/wasm32-unknown-unknown-libcxx --fresh
6+
cmake --build prebuild/build
7+
cmake --install prebuild/build
8+
rm -rf ./prebuild/wasm32-unknown-unknown-libcxx.zip
9+
rm -rf ./prebuild/wasm32-unknown-unknown-libcxx.tar.gz
10+
pushd ./prebuild
11+
zip -r wasm32-unknown-unknown-libcxx.zip wasm32-unknown-unknown-libcxx
12+
tar caf wasm32-unknown-unknown-libcxx.tar.gz wasm32-unknown-unknown-libcxx
13+
popd

0 commit comments

Comments
 (0)