From 3f6cb283657ca4bb5af243aa5f407a590eaa52ef Mon Sep 17 00:00:00 2001 From: Martin Sumner Date: Mon, 13 Nov 2017 18:58:50 +0000 Subject: [PATCH] Strange issue with High Sierra Since High Sierra upgrade having a seperate line for platform_define 17 caused issues. OTP 19 seemingly matched against it. OTP 18 had a redefine issue as it appeared to match against it as well. Using this regex instead seems to work. Why? Why was htis not an issue before High Sierra? --- rebar.config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rebar.config b/rebar.config index d40871f..a28ea33 100644 --- a/rebar.config +++ b/rebar.config @@ -1,5 +1,5 @@ {erl_opts, [warnings_as_errors, - {platform_define, "18", old_rand}, + {platform_define, "^1[7-8]{1}", old_rand}, {platform_define, "^R", old_rand}, {platform_define, "^R", no_sync}]}.