如何在rebar3中排除Erlang模块的编译?
应该根据配置文件包括或排除它。
发布于 2017-08-19 23:46:08
解决方案是添加一个在rebar.config中定义宏的rebar3配置文件
{profiles, [{nomodulex, [
{erl_opts, [{d, 'NO_MODX'}]}
]}
]}.在模块中,紧跟在模块声明-ifndef(NO_MODX).之后,并在-endif.的末尾添加
https://stackoverflow.com/questions/45770858
复制相似问题