“too many errors emitted stopping now” - How to increase or remove the limit?

瘦欲@ 提交于 2019-12-03 16:21:23

问题


So I'm doing some refactoring and it's really annoying that I don't get all the errors up front. How can I either increase the limit or remove the limit, so that the compiler will output all the errors it can find?


回答1:


So I found how to do it. You add this compiler flag:

-ferror-limit=0

0 means that it will not stop because of too many errors.

This seems to be a question and answer that explains how to add a compiler flag in Xcode 4:

Xcode Project-Wide compiler flag




回答2:


Maybe this:

Preferences > General > Continue Building After Errors

https://developer.apple.com/library/ios/recipes/xcode_help-general_preferences/Recipe.html




回答3:


Here is the complete syntax to compile and pass the flags to the make command

make install CFLAGS="-ferror-limit=0"

Also as outlined here: https://developer.apple.com/library/content/documentation/Porting/Conceptual/PortingUnix/compiling/compiling.html



来源:https://stackoverflow.com/questions/17925648/too-many-errors-emitted-stopping-now-how-to-increase-or-remove-the-limit

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