aboutsummaryrefslogtreecommitdiff
path: root/etc/bootstrap
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-10-16 08:22:48 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-10-16 08:22:48 +0200
commite85f2d4e36ec56229b82f617fb8b9717927347ca (patch)
tree95bb2c44c67715acd66af6a743a9b1e1a85f219f /etc/bootstrap
parenta4c0078cabe614c9ae1b99d67b67ec55413d8199 (diff)
Tweak bootstrap/environments batch files for Clang and MSVC
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%"