commit d42e4455c8468adb0a7f670f146cd5589eb98825
Author: Scott Kostyshak <[email protected]>
Date:   Fri Jun 27 11:32:27 2025 +0200

    lyxbuild: embed quotes for -DLYX_CXX_FLAGS_EXTRA
    
    This does not change the build itself, but otherwise, in the
    build-commands script, the quotes aren't there and the semi-colon
    will be interpreted by bash as splitting two commands.
    
    Note that semi-colons are used by -DLYX_CXX_FLAGS_EXTRA to delimit
    multiple flags, e.g.:
    
      -DLYX_CXX_FLAGS_EXTRA="-Werror;-Wextra;-pedantic;-Wextra-semi"
---
 development/lyx-tester/lyxbuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/development/lyx-tester/lyxbuild b/development/lyx-tester/lyxbuild
index 9c942386ec..47e5051575 100755
--- a/development/lyx-tester/lyxbuild
+++ b/development/lyx-tester/lyxbuild
@@ -661,7 +661,7 @@ else
     -DLYX_ENABLE_EXPORT_TESTS=${ctest_flags}
     -DLYX_ENABLE_KEYTESTS=OFF
     -DLYX_PROFILE=ON
-    -DLYX_USE_QT=${qt_version} -DLYX_CXX_FLAGS_EXTRA="${CPPFLAGS}"
+    -DLYX_USE_QT=${qt_version} -DLYX_CXX_FLAGS_EXTRA=\"${CPPFLAGS}\"
     # Compile with STL debug code.
     # For one particular use case, see:
     #   https://www.lyx.org/trac/ticket/11204
@@ -696,7 +696,7 @@ else
     -DLYX_ENABLE_EXPORT_TESTS=${ctest_flags}
     -DLYX_ENABLE_KEYTESTS=OFF
     -DLYX_PROFILE=OFF
-    -DLYX_USE_QT=${qt_version} -DLYX_CXX_FLAGS_EXTRA="${CPPFLAGS_FAST}"
+    -DLYX_USE_QT=${qt_version} -DLYX_CXX_FLAGS_EXTRA=\"${CPPFLAGS_FAST}\"
     -DLYX_STDLIB_DEBUG=OFF
     -DLYX_DEBUG_GLIBC=OFF
     -DLYX_DEBUG_GLIBC_PEDANTIC=OFF
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to