浏览代码

Add debug flag to make it easier to get a debug version of rebar

Dave Smith 14 年前
父节点
当前提交
465af36266
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. +9
    -0
      bootstrap

+ 9
- 0
bootstrap 查看文件

@ -18,8 +18,17 @@ main(Args) ->
rm("ebin/rebar_core.beam")
end,
%% Add check for debug flag
case lists:member("debug", Args) of
true ->
DebugFlag = debug_info;
false ->
DebugFlag = undefined
end,
%% Compile all src/*.erl to ebin
case make:files(filelib:wildcard("src/*.erl"), [{outdir, "ebin"}, {i, "include"},
DebugFlag,
{d, 'BUILD_TIME', Built},
{d, 'VCS_INFO', VcsInfo}]) of
up_to_date ->

正在加载...
取消
保存