Skip to content

Commit fac8976

Browse files
committed
Update artifact.mk
1 parent 563af8b commit fac8976

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

mk/artifact.mk

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,10 @@ endif
5252

5353
artifact: ieeelib scimark2
5454
ifeq ($(call has, PREBUILT), 1)
55-
$(Q)$(PRINTF) "Fetching prebuilt executables from \"rv32emu-prebuilt\" ...\n"
56-
$(Q)wget -q --show-progress https://github.com/sysprog21/rv32emu-prebuilt/releases/download/$(LATEST_RELEASE)/rv32emu-prebuilt.tar.gz -O- | tar -C build --strip-components=1 -xz
55+
$(Q)if [ ! -f "$(BIN_DIR)/riscv32/aes" ]; then \
56+
$(PRINTF) "Fetching prebuilt executables from \"rv32emu-prebuilt\" ...\n"; \
57+
wget -q --show-progress https://github.com/sysprog21/rv32emu-prebuilt/releases/download/$(LATEST_RELEASE)/rv32emu-prebuilt.tar.gz -O- | tar -C build --strip-components=1 -xz; \
58+
fi
5759
else
5860
git submodule update --init $(addprefix ./tests/,$(foreach tb,$(TEST_SUITES),$(tb)))
5961
$(Q)for tb in $(TEST_SUITES); do \

0 commit comments

Comments
 (0)