Skip to content

Makefile: adjust default target, broaden all target #473

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
- name: Build release binaries
run: |
make clean
make CC=${{ matrix.cc }} CRYPTO_PROVIDER=${{ matrix.crypto }} PROFILE=release
make CC=${{ matrix.cc }} CRYPTO_PROVIDER=${{ matrix.crypto }} PROFILE=release test
- name: Verify release builds were not using ASAN
if: runner.os == 'Linux' # For 'nm'
run: |
Expand Down
10 changes: 6 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,14 @@ ifeq ($(COMPRESSION), true)
LDFLAGS += -lm
endif

all: target/client target/server
default: target/$(PROFILE)/librustls_ffi.a

test: all
all: default test integration connect-test

test: target/client target/server
${CARGO} test ${CARGOFLAGS}

integration: all
integration: test
${CARGO} test ${CARGOFLAGS} -- --ignored

connect-test: target/client
Expand Down Expand Up @@ -97,4 +99,4 @@ format-check:
cargo fmt --check
sed -i -e 's/if true {/ffi_panic_boundary! {/g' src/*.rs

.PHONY: all clean test integration format format-check
.PHONY: default all clean test integration format format-check