Merge branch 'max-errors' into 'master'

CMakeLists.txt: add -fmax-errors=5 for GNU

See merge request KartKrew/Kart!1357
This commit is contained in:
toaster 2023-07-28 21:54:55 +00:00
commit 421a9f1990

View file

@ -513,6 +513,11 @@ target_compile_options(SRB2SDL2 PRIVATE
$<$<AND:$<COMPILE_LANGUAGE:C>,$<C_COMPILER_ID:MSVC>>:
/Wv:19.20.27004.0
>
# GNU
$<$<C_COMPILER_ID:GNU>:
-fmax-errors=5
>
)
if(SRB2_CONFIG_ERRORMODE)
target_compile_options(SRB2SDL2 PRIVATE