Browse Source

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]
Loïc Hoguin 7 years ago
parent
commit
4522af8cc7
1 changed files with 4 additions and 0 deletions
  1. 4 0
      core/kerl.mk

+ 4 - 0
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 ?=