瀏覽代碼

ft: 使用enc编译

master
SisMaker 1 年之前
父節點
當前提交
aa2345649f
共有 1 個檔案被更改,包括 1 行新增27 行删除
  1. +1
    -27
      rebar.config.script

+ 1
- 27
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.

Loading…
取消
儲存