Skip to content

Commit

Permalink
fix(Makefile): rln was enabled by default (#1964)
Browse files Browse the repository at this point in the history
  • Loading branch information
rymnc committed Aug 29, 2023
1 parent e7b2b88 commit 9b1d290
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Expand Up @@ -131,13 +131,12 @@ else
LIBRLN_FILE := librln.a
endif

$(LIBRLN_BUILDDIR)/$(LIBRLN_FILE):
$(LIBRLN_FILE):
echo -e $(BUILD_MSG) "$@" && \
./scripts/build_rln.sh $(LIBRLN_BUILDDIR)

librln-experimental:
EXPERIMENTAL_PARAMS += -d:rln --passL:$(LIBRLN_FILE) --passL:-lm
librln: $(LIBRLN_BUILDDIR)/$(LIBRLN_FILE)
librln-experimental: | $(LIBRLN_FILE)
$(eval EXPERIMENTAL_PARAMS += -d:rln --passL:$(LIBRLN_FILE) --passL:-lm)

ifneq ($(RLN), true)
librln: ; # noop
Expand All @@ -147,6 +146,7 @@ endif

clean-librln:
cargo clean --manifest-path vendor/zerokit/rln/Cargo.toml
rm -f $(LIBRLN_FILE)

# Extend clean target
clean: | clean-librln
Expand Down

0 comments on commit 9b1d290

Please sign in to comment.