configure.ac |   13 +++++++++++++
 1 file changed, 13 insertions(+)

New commits:
commit 5bfe9d9cb69910f3824dc6654abea487b1f995e0
Author:     Stephan Bergmann <stephan.bergm...@allotropia.de>
AuthorDate: Fri Sep 20 15:21:34 2024 +0200
Commit:     Stephan Bergmann <stephan.bergm...@allotropia.de>
CommitDate: Mon Apr 14 10:14:57 2025 +0200

    Invent --with-extra-cc/cxx-flags
    
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173731
    Reviewed-by: Stephan Bergmann <stephan.bergm...@allotropia.de>
    Tested-by: Jenkins
    (cherry picked from commit 3b4ecb07a6f0295441317ab889796034506bc8af)
    Conflicts:
            configure.ac
    
    Change-Id: I22ce959f1fe74b8eb1fa0d0fbffe8b257e7f3110
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/184132
    Reviewed-by: Stephan Bergmann <stephan.bergm...@allotropia.de>
    Tested-by: allotropia jenkins <jenk...@allotropia.de>

diff --git a/configure.ac b/configure.ac
index 306ffa1f97e3..4ac5a4fa5c4d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2188,6 +2188,16 @@ AC_ARG_ENABLE(customtarget-components,
     AS_HELP_STRING([--enable-customtarget-components],
         [Generates the static UNO object constructor mapping from the build.]))
 
+AC_ARG_WITH(extra-cc-flags,
+    AS_HELP_STRING([--with-extra-cc-flags=...],
+        [Specify extra flags (like GCC's -fdiagnostics-color=always, which is 
useful in combination
+         with the GNU Make --output-sync option) to add to the end of the CC 
variable.]))
+
+AC_ARG_WITH(extra-cxx-flags,
+    AS_HELP_STRING([--with-extra-cxx-flags=...],
+        [Specify extra flags (like GCC's -fdiagnostics-color=always, which is 
useful in combination
+         with the GNU Make --output-sync option) to add to the end of the CXX 
variable.]))
+
 dnl ===================================================================
 dnl Optional Packages (--with/without-)
 dnl ===================================================================
@@ -7164,6 +7174,9 @@ if test "$_os" != "WINNT"; then
     fi
 fi
 
+CC="$CC $with_extra_cc_flags"
+CXX="$CXX $with_extra_cxx_flags"
+
 dnl check for GNU C++ compiler version
 if test "$GXX" = "yes" -a -z "$COM_IS_CLANG"; then
     AC_MSG_CHECKING([the GNU C++ compiler version])

Reply via email to