commit fd00364d8a7759789f2b14c9d7a1b7d9c43ce752
Author: Scott Kostyshak <[email protected]>
Date:   Wed Jul 2 17:03:55 2025 +0200

    lyxbuild: implement "max errors" option for GCC
    
    Before, the corresponding option was only used for Clang. This
    option keeps the output simple.
---
 development/lyx-tester/lyxbuild | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/development/lyx-tester/lyxbuild b/development/lyx-tester/lyxbuild
index b90df4002a..189c1ddee1 100755
--- a/development/lyx-tester/lyxbuild
+++ b/development/lyx-tester/lyxbuild
@@ -613,11 +613,14 @@ else
       # todo: lyx-devel says it would be good to clean these up.
       # 
(https://www.mail-archive.com/search?l=mid&q=4cee06c8-0646-4f1a-b81f-409d6de33a4b%40gmail.com)
       #CPPFLAGS="-Wshadow"
+      if [ "${clang}" = "1" ]; then
+        CPPFLAGS+=";-ferror-limit=1"
+      else
+        CPPFLAGS+=";-fmax-errors=1"
+      fi
 
       # Stop and give error immediately on first error.
       if [ "${clang}" = "1" ]; then
-        # This option only works with Clang.
-        CPPFLAGS+=";-ferror-limit=1"
 
         # Helped for commits 22b35872 and b69abd49
         CPPFLAGS+=";-Wheader-hygiene"
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to