diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-10-08 16:10:14 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-10-09 08:24:06 +0200 |
commit | 58599816d7a2898ea54edb57ae320ebbfd5298b4 (patch) | |
tree | ec9b53bccbde7841417c2f745fd716e31cd0c5bf /configure.ac | |
parent | 92d860f3fdd7c5390fa6c100d6f4dbbfa8f14fe7 (diff) |
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@redhat.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 6 |
1 files changed, 5 insertions, 1 deletions
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' ' ') |