summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@plataformatec.com.br>2016-08-04 12:02:03 +0200
committerJosé Valim <jose.valim@plataformatec.com.br>2016-08-04 12:02:13 +0200
commitf8fe5325a9fb136fd0d2ea1d931abb895e1fc9b9 (patch)
treed87929b9754437a986bc4d3f21091c0be28d1efd /Makefile
parentaeedf38cf1dd17331b166ceb06db524e20b4d943 (diff)
downloadelixir-f8fe5325a9fb136fd0d2ea1d931abb895e1fc9b9.tar.gz
Properly check for earlier Erlang versions, closes #5090
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 91766f9eb..4e3ae4eb4 100644
--- a/Makefile
+++ b/Makefile
@@ -23,7 +23,7 @@ GIT_TAG = $(strip $(shell head="$(call GIT_REVISION)"; git tag --points-at $$hea
#==> Functions
define CHECK_ERLANG_RELEASE
- $(Q) erl -noshell -eval 'io:fwrite("~s", [erlang:system_info(otp_release) >= "18"])' -s erlang halt | grep -q '^true'; \
+ $(Q) erl -noshell -eval '{V,_} = string:to_integer(erlang:system_info(otp_release)), io:fwrite("~s", [is_integer(V) and (V >= 18)])' -s erlang halt | grep -q '^true'; \
if [ $$? != 0 ]; then \
echo "At least Erlang 18.0 is required to build Elixir"; \
exit 1; \