[Libreoffice-commits] core.git: configure.ac

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Wed Oct 9 06:25:23 UTC 2019


 configure.ac |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

New commits:
commit 58599816d7a2898ea54edb57ae320ebbfd5298b4
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Tue Oct 8 16:10:14 2019 +0200
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Wed Oct 9 08:24:06 2019 +0200

    With Cygwin, AC_PATH_PROG needs Cygwin-style paths
    
    (And instead directly specifying CLANGDIR as a Cygwin-style path in my clang-cl
    build's autogen.input doesn't work, as compilerplugins/Makefile-clang.mk spells
    a dependency on
    
      $(CLANGDIR)/bin/clang$(CLANG_EXE_EXT)
    
    which Make on Windows requires to be a Windows-style path.)
    
    Change-Id: I20ee3a2dfff0a3db66e1388cd6fc01084a6fd812
    Reviewed-on: https://gerrit.libreoffice.org/80471
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/configure.ac b/configure.ac
index d90fc802484f..bf2002ebcace 100644
--- a/configure.ac
+++ b/configure.ac
@@ -7011,7 +7011,11 @@ if test "$COM_IS_CLANG" = "TRUE"; then
         if test -z "$COMPILER_PLUGINS_CXX"; then
             COMPILER_PLUGINS_CXX=$CXX
         fi
-        AC_PATH_PROG(LLVM_CONFIG, llvm-config,[],$CLANGDIR/bin $PATH)
+        clangbindir=$CLANGDIR/bin
+        if test "$build_os" = "cygwin"; then
+            clangbindir=$(cygpath -u "$clangbindir")
+        fi
+        AC_PATH_PROG(LLVM_CONFIG, llvm-config,[],"$clangbindir" $PATH)
         if test -n "$LLVM_CONFIG"; then
             COMPILER_PLUGINS_CXXFLAGS=$($LLVM_CONFIG --cxxflags)
             COMPILER_PLUGINS_LINKFLAGS=$($LLVM_CONFIG --ldflags --libs --system-libs | tr '\n' ' ')


More information about the Libreoffice-commits mailing list