From e85f2d4e36ec56229b82f617fb8b9717927347ca Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 16 Oct 2019 08:22:48 +0200 Subject: Tweak bootstrap/environments batch files for Clang and MSVC --- etc/bootstrap/bbot-bootstrap-clang.bat | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'etc/bootstrap') diff --git a/etc/bootstrap/bbot-bootstrap-clang.bat b/etc/bootstrap/bbot-bootstrap-clang.bat index 3fc7e67..c2be121 100644 --- a/etc/bootstrap/bbot-bootstrap-clang.bat +++ b/etc/bootstrap/bbot-bootstrap-clang.bat @@ -9,9 +9,10 @@ setlocal EnableExtensions EnableDelayedExpansion rem If the MSVC variable is set, then set up the environment via the MSVC rem command prompt rather than letting Clang find some default (note that rem in the latter case, clang++ should be in PATH). +rem +rem See also adding MSVC-bundled Clang to PATH below. -rem set "MSVC=" -rem set "VCVARS=" +set "MSVC=" set "MSVC=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community" set "VCVARS=VC\Auxiliary\Build\vcvars64.bat" @@ -43,6 +44,12 @@ if not "_%MSVC%_" == "__" ( if errorlevel 1 goto error ) +rem Use MSVC-bundled Clang. +rem +if not "_%VCINSTALLDIR%_" == "__" ( + set "PATH=%VCINSTALLDIR%Tools\Llvm\bin;%PATH%" +) + rem Use bootstrap tools. rem set "PATH=%BOOTSTRAP%\bin;%PATH%" -- cgit v1.1