Skip to content

Commit

Permalink
Add rust-toolchain.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
riptl committed Mar 30, 2024
1 parent 6914a68 commit 75b0b6b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 2 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
2 changes: 2 additions & 0 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[toolchain]
channel = "1.76.0"

0 comments on commit 75b0b6b

Please sign in to comment.