在我的模块中,我有
-include("blah.hrl").
Run Code Online (Sandbox Code Playgroud)
该.hrl文件不在模块的目录中,而是在我系统的其他位置.如何rebar在编译时找到它?有没有办法在include目录中添加路径rebar.config?
小智 6
{erl_opts, [{i, PathToIncludeFile}]}.
Run Code Online (Sandbox Code Playgroud)
在rebar.config应该做的事情.或者将{i,...}附加到现有的erl_opts(如果有的话).