Blob Blame History Raw
From: Lars Hesel Christensen <lars@larshesel.dk>
Date: Fri, 21 Jul 2017 13:26:27 +0200
Subject: [PATCH] Make escript work on OTP20

The `-smp` flag has been removed on OTP 20.

Signed-off-by: Randy Barlow <randy@electronsweatshop.com>

diff --git a/rebar.config b/rebar.config
index f64a73c..24cf0c2 100644
--- a/rebar.config
+++ b/rebar.config
@@ -5,8 +5,8 @@
 {eunit_opts, [verbose]}.
 {cover_enabled, true}.
 
-{escript_emu_args, "%%! -escript main cuttlefish_escript -smp disable +A 0\n"}.
 {escript_incl_apps, [goldrush, getopt, lager]}.
+{escript_emu_args, "%%! -escript main cuttlefish_escript +S 1 +A 0\n"}.
 
 {xref_checks, []}.
 {xref_queries, [{"(XC - UC) || (XU - X - B - \"(rebar.*|mustache)\" : Mod)", []}]}.