Skip to content

Commit

Permalink
BUILD_FLAGS are overwritten in 'standalone' mode
Browse files Browse the repository at this point in the history
  • Loading branch information
farindk committed Jul 19, 2023
1 parent d757fb1 commit 0aec5a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build-emscripten.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,9 @@ BUILD_FLAGS="-lembind -o libheif.js --pre-js pre.js --post-js post.js -sWASM=$US
RELEASE_BUILD_FLAGS="-O3"

if [ "$STANDALONE" = "1" ]; then
# Note: this intentionally overwrites the BUILD_FLAGS set above
echo "Building in standalone (non-web) build mode"
BUILD_FLAGS="$BUILD_FLAGS -s STANDALONE_WASM=1 -s WASM=1 -o libheif.wasm --no-entry"
BUILD_FLAGS="-s STANDALONE_WASM=1 -s WASM=1 -o libheif.wasm --no-entry"
fi

if [ "$DEBUG" = "1" ]; then
Expand Down

0 comments on commit 0aec5a0

Please sign in to comment.