diff options
author | José Valim <jose.valim@plataformatec.com.br> | 2016-08-04 12:02:03 +0200 |
---|---|---|
committer | José Valim <jose.valim@plataformatec.com.br> | 2016-08-04 12:02:13 +0200 |
commit | f8fe5325a9fb136fd0d2ea1d931abb895e1fc9b9 (patch) | |
tree | d87929b9754437a986bc4d3f21091c0be28d1efd /Makefile | |
parent | aeedf38cf1dd17331b166ceb06db524e20b4d943 (diff) | |
download | elixir-f8fe5325a9fb136fd0d2ea1d931abb895e1fc9b9.tar.gz |
Properly check for earlier Erlang versions, closes #5090
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; \ |