Skip to content

Commit

Permalink
[build] Fix liboqs rebuilding every time
Browse files Browse the repository at this point in the history
  • Loading branch information
charlag committed Jul 2, 2024
1 parent 5f4b369 commit f9d7b95
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libs/webassembly/Makefile_liboqs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# If you run out of memory and it's not being caused by a memory leak, try increasing this.
TOTAL_MEMORY=48MB

.PHONY: build include clean
.PHONY: build clean

CC=emcc
WASM2JS=wasm2js
Expand Down Expand Up @@ -33,6 +33,7 @@ LIBOQS_DIR=liboqs
clean:
rm -f ${WASM}
rm -rf include

include:
mkdir -p include/oqs
cp "${LIBOQS_DIR}/src/oqs.h" include/oqs
Expand Down Expand Up @@ -66,5 +67,4 @@ $(WASM): include
--no-entry \
-s TOTAL_MEMORY=${TOTAL_MEMORY} \
-s EXPORTED_FUNCTIONS="['_OQS_KEM_new', '_OQS_KEM_free', '_OQS_KEM_keypair', '_OQS_KEM_encaps', '_OQS_KEM_decaps', '_TUTA_inject_entropy', '_malloc', '_free']" \
-o $(WASM)
rm -rf include
-o $(WASM)

0 comments on commit f9d7b95

Please sign in to comment.