diff options
Diffstat (limited to 'build/NWGNUenvironment.inc')
-rw-r--r-- | build/NWGNUenvironment.inc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/build/NWGNUenvironment.inc b/build/NWGNUenvironment.inc index a06cffc082..cc14e479cf 100644 --- a/build/NWGNUenvironment.inc +++ b/build/NWGNUenvironment.inc @@ -229,7 +229,13 @@ endif # -proc PII generate code base on Pentium II instruction set # -inst mmx use MMX extensions (not used) -CFLAGS = -c -nosyspath -Cpp_exceptions off -RTTI off -align 4 -w nocmdline -proc PII +CFLAGS += -c -nosyspath -Cpp_exceptions off -RTTI off -align 4 -w nocmdline -proc PII + +ifdef CC_MAX_ERRORS +CFLAGS += -maxerrors $(CC_MAX_ERRORS) +else +CFLAGS += -maxerrors 1 +endif ifeq "$(REQUIRE_PROTOTYPES)" "1" CFLAGS += -r |