Skip to content

Commit

Permalink
add RUSTC_VER check
Browse files Browse the repository at this point in the history
  • Loading branch information
yilabs committed Aug 12, 2022
1 parent 3221a58 commit 82dab56
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions rust/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,16 @@ rust_interop.h:
# dub run
dstep $@ -o $(RUST_INTEROP_D)


RUSTC_VER := $(shell rustc --version)

env:
echo "$(RUSTC_VER)"

build:
ifeq (,$(findstring nightly,$(RUSTC_VER)))
rustup toolchain install nightly # needed for cargo-expand
endif
rustup default nightly
cargo install cbindgen # --force
cargo install cargo-expand
Expand Down

0 comments on commit 82dab56

Please sign in to comment.