Skip to content

Commit d84ca9d

Browse files
committed
Fix #308.
1 parent 5d14e01 commit d84ca9d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

embed/bcw2/build.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,18 @@ ROOT=../../
77
BINARYEN="$ROOT/tools/binaryen/bin"
88
WASI_SDK="$ROOT/tools/wasi-sdk/bin"
99

10-
trap 'rm -rf build/ sqlite/ bcw2.tmp' EXIT
10+
trap 'rm -rf sqlite/ build/ bcw2.tmp' EXIT
1111

12+
mkdir -p sqlite/
1213
mkdir -p build/ext/
1314
cp "$ROOT"/sqlite3/*.[ch] build/
1415
cp "$ROOT"/sqlite3/*.patch build/
16+
cd sqlite/
1517

1618
# https://sqlite.org/src/info/ba2174bdca7d1d1a
17-
curl -# https://sqlite.org/src/tarball/sqlite.tar.gz?r=ba2174bdca | tar xz
19+
curl -#L https://github.com/sqlite/sqlite/archive/b46738f.tar.gz | tar xz --strip-components=1
20+
# curl -#L https://sqlite.org/src/tarball/sqlite.tar.gz?r=ba2174bdca | tar xz --strip-components=1
1821

19-
cd sqlite
2022
if [[ "$OSTYPE" == "msys" || "$OSTYPE" == "cygwin" ]]; then
2123
MSYS_NO_PATHCONV=1 nmake /f makefile.msc sqlite3.c "OPTS=-DSQLITE_ENABLE_UPDATE_DELETE_LIMIT -DSQLITE_ENABLE_ORDERED_SET_AGGREGATES"
2224
else

0 commit comments

Comments
 (0)