How do I tell mxmlc to treat warnings as errors?

南楼画角 提交于 2020-01-03 19:16:49

问题


I'm using the mxmlc command line tool to compile a pure AS3 project. Is there a command line option to make mxmlc treat warnings as errors? I've read through all the compiler flags and flex-config.xml but wasn't able to find this option.


回答1:


You cannot. The default mxmlc value for 'strict' is true. Setting it to true has no effect.




回答2:


What about...

-compiler.strict    

alias -strict runs the AS3 compiler in strict error checking mode. strict must be 'false' when es3 is 'true'.

I believe you can just use:

mxmlc --strict=true 


来源:https://stackoverflow.com/questions/1180691/how-do-i-tell-mxmlc-to-treat-warnings-as-errors

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!