aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-05-02 16:34:02 +0200
committerLoïc Hoguin <[email protected]>2018-05-02 16:34:02 +0200
commit4522af8cc771c7f6f1ac2712a1c4e9e023dafe50 (patch)
treecc8fc0d7200b0f7e8c20fc8f5b619978f51b2d81
parent9245b41f6ceea8b8dacafed5e2fc455a8ae78f88 (diff)
downloaderlang.mk-4522af8cc771c7f6f1ac2712a1c4e9e023dafe50.tar.gz
erlang.mk-4522af8cc771c7f6f1ac2712a1c4e9e023dafe50.tar.bz2
erlang.mk-4522af8cc771c7f6f1ac2712a1c4e9e023dafe50.zip
Add LATEST_ERLANG_OTP=1 to automatically select the latest build
I need this for CI because I want to run Dialyzer only against the most recent OTP after tests have passed everywhere. Left undocumented for now. [ci skip]
-rw-r--r--core/kerl.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/kerl.mk b/core/kerl.mk
index 771ad41..a6b45d7 100644
--- a/core/kerl.mk
+++ b/core/kerl.mk
@@ -48,6 +48,10 @@ distclean-kerl:
# Allow users to select which version of Erlang/OTP to use for a project.
+ifneq ($(strip $(LATEST_ERLANG_OTP)),)
+ERLANG_OTP := $(notdir $(lastword $(sort $(wildcard $(KERL_INSTALL_DIR)/*[^-native]))))
+endif
+
ERLANG_OTP ?=
ERLANG_HIPE ?=