diff --git a/rebar.config.script b/rebar.config.script index 007e9b3..a5da769 100644 --- a/rebar.config.script +++ b/rebar.config.script @@ -17,7 +17,7 @@ Config1 = case lists:keyfind(erl_opts, 1, CONFIG) of CONFIG ++ [{erl_opts, ErlOpts}] end, -Config2 = case os:type() of +case os:type() of {unix, _} -> CC = case os:getenv("CC") of false -> "cc"; @@ -36,30 +36,4 @@ Config2 = case os:type() of end; _ -> Config1 -end, - -IsRebar2 = case lists:keyfind(rebar, 1, application:loaded_applications()) of - {rebar, _Desc, Vsn} -> - case string:split(Vsn, ".") of - ["2" | _] -> true; - _ -> false - end; - false -> - false -end, - -case IsRebar2 of - true -> - Config2; - false -> - Config2 ++ [ - {plugins, [{pc, "~> 1.0"}]}, - {artifacts, ["priv/jiffy.so"]}, - {provider_hooks, [ - {post, [ - {compile, {pc, compile}}, - {clean, {pc, clean}} - ]} - ]} - ] end.