Skip to content

Commit

Permalink
define RUSTC variable to avoid sudo make install error
Browse files Browse the repository at this point in the history
  • Loading branch information
keisku committed May 5, 2024
1 parent 73df350 commit 731bb37
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ LN ?= ln -sf
TEST_IMG_NAME ?= wasmtest:latest
RUNTIMES ?= wasmedge wasmtime wasmer
CONTAINERD_NAMESPACE ?= default
RUSTC ?= rustc

# We have a bit of fancy logic here to determine the target
# since we support building for gnu and musl
# TARGET must evenutually match one of the values in the cross.toml
HOST_TARGET = $(shell rustc --version -v | sed -En 's/host: (.*)/\1/p')
HOST_TARGET = $(shell $(RUSTC) --version -v | sed -En 's/host: (.*)/\1/p')

# if TARGET is not set and we are using cross
# default to musl to facilitate easier use shim on other distros becuase of the static build
Expand Down

0 comments on commit 731bb37

Please sign in to comment.