aboutsummaryrefslogtreecommitdiff
path: root/etc/bootstrap
diff options
context:
space:
mode:
Diffstat (limited to 'etc/bootstrap')
-rw-r--r--etc/bootstrap/bbot-bootstrap-clang.bat11
1 files changed, 9 insertions, 2 deletions
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%"