Skip to content

Commit

Permalink
rust: Temporary work-around testing
Browse files Browse the repository at this point in the history
  • Loading branch information
th0ma7 committed Dec 21, 2022
1 parent 9af94c6 commit d86d04f
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions mk/spksrc.common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ MSG = echo "===> "
RUN = cd $(WORK_DIR)/$(PKG_DIR) && env $(ENV)

# Add cargo for rust compiler to default PATH
ifneq ($(BASE_DISTRIB_DIR),)
export PATH := $(realpath $(BASE_DISTRIB_DIR)/cargo/bin):$(PATH)
export CARGO_HOME = $(realpath $(BASE_DISTRIB_DIR)/cargo)
export RUSTUP_HOME = $(realpath $(BASE_DISTRIB_DIR)/rustup)
endif
#ifneq ($(BASE_DISTRIB_DIR),)
export CARGO_HOME = $(BASE_DISTRIB_DIR)/cargo
export RUSTUP_HOME = $(BASE_DISTRIB_DIR)/rustup
#export PATH := $(BASE_DISTRIB_DIR)/bin:$(PATH)
#export PATH := $(BASE_DISTRIB_DIR)/bin:$$PATH
ENV += PATH=$(CARGO_HOME)/bin:$$PATH
#endif

# fallback by default to native/python*
PIP ?= pip
Expand Down

0 comments on commit d86d04f

Please sign in to comment.