aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2017-08-23 13:38:08 +0200
committerLoïc Hoguin <[email protected]>2017-08-23 13:38:08 +0200
commit85bd1bb0637d560ae0c82b3f6b64aaf5c6c3e343 (patch)
treeab40f9efd53f9b092dcc25b07c79a27f0b9779b6 /core
parent05edf74e8a2860cd3beb84512f7280be8cd21e0c (diff)
downloaderlang.mk-85bd1bb0637d560ae0c82b3f6b64aaf5c6c3e343.tar.gz
erlang.mk-85bd1bb0637d560ae0c82b3f6b64aaf5c6c3e343.tar.bz2
erlang.mk-85bd1bb0637d560ae0c82b3f6b64aaf5c6c3e343.zip
Ensure the current shell knows about PATH when pinning OTP
Diffstat (limited to 'core')
-rw-r--r--core/kerl.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/kerl.mk b/core/kerl.mk
index 1524830..771ad41 100644
--- a/core/kerl.mk
+++ b/core/kerl.mk
@@ -54,6 +54,7 @@ ERLANG_HIPE ?=
# Use kerl to enforce a specific Erlang/OTP version for a project.
ifneq ($(strip $(ERLANG_OTP)),)
export PATH := $(KERL_INSTALL_DIR)/$(ERLANG_OTP)/bin:$(PATH)
+SHELL := env PATH=$(PATH) $(SHELL)
$(eval $(call kerl_otp_target,$(ERLANG_OTP)))
# Build Erlang/OTP only if it doesn't already exist.
@@ -66,6 +67,7 @@ else
# Same for a HiPE enabled VM.
ifneq ($(strip $(ERLANG_HIPE)),)
export PATH := $(KERL_INSTALL_DIR)/$(ERLANG_HIPE)-native/bin:$(PATH)
+SHELL := env PATH=$(PATH) $(SHELL)
$(eval $(call kerl_hipe_target,$(ERLANG_HIPE)))
# Build Erlang/OTP only if it doesn't already exist.