Skip to content
This repository has been archived by the owner on Aug 12, 2024. It is now read-only.

Commit

Permalink
Compile z3 with address sanitizer
Browse files Browse the repository at this point in the history
ref #24

[no ci]
  • Loading branch information
jklmnn committed Nov 22, 2021
1 parent 3daccb0 commit 0b82eba
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
GPRBUILD ?= gprbuild
GPRBUILD_OPTS = -s -p -j0
Z3_TEST_OPTS = -fsanitize=address -static-libasan -fno-omit-frame-pointer

GCOVR_OPTS = \
--exclude-unreachable-branches \
Expand All @@ -13,10 +14,10 @@ test: build obj/tests/tests
@gcovr . $(GCOVR_OPTS)

z3/z3/build/Makefile:
@cd z3/z3 && python scripts/mk_make.py
CFLAGS="$(Z3_TEST_OPTS)" CXXFLAGS="$(Z3_TEST_OPTS)" cmake -S z3/z3 -B z3/z3/build

z3/z3/build/libz3.so: z3/z3/build/Makefile
$(MAKE) -C z3/z3/build
make -C z3/z3/build -j$(shell nproc)

build: z3/z3/build/libz3.so
@$(GPRBUILD) $(GPRBUILD_OPTS) -P tests/tests
Expand Down

0 comments on commit 0b82eba

Please sign in to comment.