Skip to content

Commit

Permalink
build rust with sanitizer flags when needed
Browse files Browse the repository at this point in the history
  • Loading branch information
AviAvni committed Dec 26, 2023
1 parent 2175df2 commit 72e119b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,10 @@ else
CARGO_FLAGS=--release
endif

ifeq ($(SAN), address)
export RUSTFLAGS=-Zsanitizer=address
endif

$(FalkorDBRS):
@echo Building $@ ...
cd deps/FalkorDB-rs && cargo build $(CARGO_FLAGS) --features falkordb_allocator -Z unstable-options --out-dir $(FalkorDBRS_BINDIR) && \
Expand Down

0 comments on commit 72e119b

Please sign in to comment.