[Libreoffice-commits] core.git: configure.ac
Tor Lillqvist (via logerrit)
logerrit at kemper.freedesktop.org
Sun Oct 25 06:39:10 UTC 2020
configure.ac | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
New commits:
commit 4fd879cfc898e53e75506ac33fe53116b3649856
Author: Tor Lillqvist <tml at collabora.com>
AuthorDate: Sun Oct 25 01:54:14 2020 +0300
Commit: Tor Lillqvist <tml at collabora.com>
CommitDate: Sun Oct 25 07:38:11 2020 +0100
Fix the find_msvc function for building on WSL
Use the PROGRAMFILESX86 environment variable that autogen.sh exports.
Use the $formatted_path_unix return value from PathFormat.
Change-Id: Ifa2c05e57248a9c05d60ebf7b93fbdc1c1e59b1b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104764
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml at collabora.com>
diff --git a/configure.ac b/configure.ac
index 06793fc606cd..7580e90413fb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3744,10 +3744,14 @@ find_msvc()
unset vctest vcnum vcnumwithdot vcbuildnumber
vs_versions_to_check "$1"
- vswhere="$(perl -e 'print $ENV{"ProgramFiles(x86)"}')"
+ if test "$build_os" = wsl; then
+ vswhere="$PROGRAMFILESX86"
+ else
+ vswhere="$(perl -e 'print $ENV{"ProgramFiles(x86)"}')"
+ fi
vswhere+="\\Microsoft Visual Studio\\Installer\\vswhere.exe"
PathFormat "$vswhere"
- vswhere=$formatted_path
+ vswhere=$formatted_path_unix
for ver in $vsversions; do
vswhereoutput=`$vswhere -version "@<:@ $ver , $(expr $ver + 1) @:}@" -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath | head -1`
# Fall back to all MS products (this includes VC++ Build Tools)
@@ -3757,7 +3761,7 @@ find_msvc()
fi
if test -n "$vswhereoutput"; then
PathFormat "$vswhereoutput"
- vctest=$formatted_path
+ vctest=$formatted_path_unix
break
fi
done
More information about the Libreoffice-commits
mailing list