Skip to content

Commit cb3543a

Browse files
committed
Conditionally create the final lib after download
1 parent c9eca12 commit cb3543a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -592,6 +592,9 @@ $(BUILTINS_LIB_PATH):
592592
mkdir -p $(BUILTINS_LIB_DIR)
593593
curl -sSfL $(BUILTINS_URL) | \
594594
tar xzf - -C $(BUILTINS_LIB_DIR) --strip-components 1
595+
if [ ! -f $(BUILTINS_LIB_PATH) ]; then \
596+
mv $(BUILTINS_LIB_DIR)/*.a $(BUILTINS_LIB_PATH); \
597+
fi
595598
endif
596599

597600
# TODO: Specify SDK version, e.g. libc.so.wasi-sdk-21, as SO_NAME once `wasm-ld`

0 commit comments

Comments
 (0)