我正在开发一个处理 BEAM 文件的工具,我们希望能够假设代码是使用 -Werror 编译的,因此我们不必重复 erl_lint 编译器传递已经完成的验证。
有没有办法确定 BEAM 是否是用 -Werror 构建的?
我希望beam_lib:chunks/2
在这里提供帮助,但不幸的是,它似乎没有我想要的东西:
beam_lib:chunks("sample.beam", [debug_info, attributes, compile_info]).
% the stuff returned says nothing about -Werror, even if I compile with -Werror