diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 3d3b588..1729ae5 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -96,6 +96,8 @@ jobs: run: >- cargo hack --each-feature --keep-going \ build --target=${{ matrix.target }} --release + - name: make libpathrs.so + run: make CARGO_FLAGS="--target=${{ matrix.target }}" release fmt: name: rustfmt diff --git a/Makefile b/Makefile index 4d4f309..9bb112a 100644 --- a/Makefile +++ b/Makefile @@ -48,7 +48,7 @@ CARGO_CHECK := $(call cargo_hack,$(CARGO),check) CARGO_CLIPPY := $(call cargo_hack,$(CARGO),clippy) CARGO_LLVM_COV := $(call cargo_hack,$(CARGO_NIGHTLY),llvm-cov) -RUSTC_FLAGS := --features=capi -- -C panic=abort +RUSTC_FLAGS := --features=capi -- -C panic=abort -C linker=clang -C link-arg=-fuse-ld=lld CARGO_FLAGS ?= SRC_FILES = $(wildcard Cargo.*) $(shell find . -name '*.rs')