Emscripten: add a file to mark that the build completed, for libsodium.js
This commit is contained in:
parent
820a2b70e3
commit
cd67cb17e5
1
.gitignore
vendored
1
.gitignore
vendored
@ -55,6 +55,7 @@ src/curvecp/curvecpserver
|
||||
src/libsodium/*.def
|
||||
src/libsodium/include/sodium/version.h
|
||||
stamp-*
|
||||
test/js.done
|
||||
test/default/*.res
|
||||
test/default/*.trs
|
||||
test/default/aead_chacha20poly1305
|
||||
|
@ -7,6 +7,8 @@ export TOTAL_MEMORY=33554432
|
||||
export JS_EXPORTS_FLAGS="-s EXPORTED_FUNCTIONS=${EXPORTED_FUNCTIONS}"
|
||||
export LDFLAGS="-s TOTAL_MEMORY=${TOTAL_MEMORY}"
|
||||
|
||||
rm -f test/js.done
|
||||
|
||||
emconfigure ./configure --enable-minimal --disable-shared --prefix="$PREFIX" \
|
||||
CFLAGS="-O3" && \
|
||||
emmake make clean && \
|
||||
@ -45,4 +47,6 @@ echo 'sodium_utils2 and sodium_utils3 are expected to fail in Javascript.'
|
||||
mv -f "${file}.tmp" "$file"
|
||||
done
|
||||
)
|
||||
make $MAKE_FLAGS check && echo 'Done.'
|
||||
make $MAKE_FLAGS check
|
||||
echo 'Done.'
|
||||
touch -r "${PREFIX}/lib/libsodium.js" test/js.done
|
||||
|
Loading…
Reference in New Issue
Block a user