Skip to content

Commit

Permalink
Also build unsanitized object
Browse files Browse the repository at this point in the history
  • Loading branch information
riptl committed Mar 30, 2024
1 parent 2911871 commit 10ed265
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,14 @@ CC:=clang
CARGO?=cargo
DOCKER?=docker

.PHONY: build clean dist
.PHONY: build build_base build_sancov clean dist

build:
build: build_base build_sancov

build_base:
RUSTFLAGS="" $(CARGO) build --release --lib

build_sancov:
RUSTFLAGS="$(RUSTFLAGS)" $(CARGO) build --target x86_64-unknown-linux-gnu --release --lib

test/self_test: test/self_test.c
Expand All @@ -28,5 +33,6 @@ dist:
mkdir -pv dist && \
IMAGE=`$(DOCKER) build -q -f ubuntu2004.Dockerfile .` && \
CONTAINER=`$(DOCKER) create $$IMAGE` && \
$(DOCKER) cp $$CONTAINER:/app/target/x86_64-unknown-linux-gnu/release/libsolfuzz_agave.so dist/ && \
$(DOCKER) cp $$CONTAINER:/app/target/x86_64-unknown-linux-gnu/release/libsolfuzz_agave.so dist/libsolfuzz_agave_sancov.so && \
$(DOCKER) cp $$CONTAINER:/app/target/release/libsolfuzz_agave.so dist/libsolfuzz_agave.so && \
$(DOCKER) rm $$CONTAINER

0 comments on commit 10ed265

Please sign in to comment.