summaryrefslogtreecommitdiff
path: root/build_w32.bat
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2021-09-05 21:07:14 -0400
committerPaul Smith <psmith@gnu.org>2021-09-05 21:09:27 -0400
commit0d367bbe6e995ee2c664bd7c2697b56f91ae5681 (patch)
tree8563440ed1bd3b9085ac6bb22889ef9104c7c9ae /build_w32.bat
parentf4b8ddf260f1ab1f1b75b9a9d602c409c6c01b0e (diff)
downloadmake-git-0d367bbe6e995ee2c664bd7c2697b56f91ae5681.tar.gz
Clean up a few Windows build warnings (not all!)
* build_w32.bat: Quote uses of %VSWHERE% so it can contain spaces * src/hash.c (hash_init): Avoid use of an undefined struct. (hash_rehash): Ditto. * src/vpath.c (construct_vpath_list): Cast explicitly to void*.
Diffstat (limited to 'build_w32.bat')
-rwxr-xr-xbuild_w32.bat6
1 files changed, 3 insertions, 3 deletions
diff --git a/build_w32.bat b/build_w32.bat
index da770223..17066d72 100755
--- a/build_w32.bat
+++ b/build_w32.bat
@@ -100,7 +100,7 @@ if not ERRORLEVEL 1 goto FoundMSVC
call :FindVswhere
if ERRORLEVEL 1 goto LegacyVS
-for /f "tokens=* usebackq" %%i in (`%VSWHERE% -latest -property installationPath`) do (
+for /f "tokens=* usebackq" %%i in (`"%VSWHERE%" -latest -property installationPath`) do (
set InstallPath=%%i
)
set "VSVARS=%InstallPath%\VC\Auxiliary\Build\vcvarsall.bat"
@@ -404,10 +404,10 @@ goto :EOF
:FindVswhere
set VSWHERE=vswhere
-%VSWHERE% -help >nul 2>&1
+"%VSWHERE%" -help >nul 2>&1
if not ERRORLEVEL 1 exit /b 0
set "VSWHERE=C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere"
-%VSWHERE% -help >nul 2>&1
+"%VSWHERE%" -help >nul 2>&1
if ERRORLEVEL 1 exit /b 1
goto :EOF