diff --git a/Makefile b/Makefile index 324fe03..49a4cea 100644 --- a/Makefile +++ b/Makefile @@ -10,20 +10,15 @@ RUSTFLAGS+=-Cforce-frame-pointers=yes RUSTFLAGS+=-Ctarget-feature=-crt-static CC:=clang -RUST_VERSION?=+1.76.0 - CARGO?=cargo -.PHONY: build clean toolchain +.PHONY: build clean build: - RUSTFLAGS="$(RUSTFLAGS)" $(CARGO) $(RUST_VERSION) build --target x86_64-unknown-linux-gnu --release --lib + RUSTFLAGS="$(RUSTFLAGS)" $(CARGO) build --target x86_64-unknown-linux-gnu --release --lib test/self_test: test/self_test.c $(CC) -o $@ $< -Werror=all -pedantic -ldl -fsanitize=address,fuzzer-no-link -fsanitize-coverage=inline-8bit-counters clean: $(CARGO) clean - -toolchain: - rustup toolchain install $(RUST_VERSION) diff --git a/rust-toolchain.toml b/rust-toolchain.toml new file mode 100644 index 0000000..624eb0e --- /dev/null +++ b/rust-toolchain.toml @@ -0,0 +1,2 @@ +[toolchain] +channel = "1.76.0"