fix(build): add fallback detection for MSVC BuildTools alongside VS Community in build.bat
This commit is contained in:
parent
ce06659ab2
commit
4ca7912562
4 changed files with 12 additions and 0 deletions
12
build.bat
12
build.bat
|
|
@ -15,6 +15,18 @@ if exist "%VS_COMM_BIN%\ml.exe" (
|
||||||
goto do_build
|
goto do_build
|
||||||
)
|
)
|
||||||
|
|
||||||
|
rem Check Visual Studio BuildTools
|
||||||
|
set "MSVC_BIN=C:\Program Files (x86)\Microsoft Visual Studio\18\BuildTools\VC\Tools\MSVC\14.50.35717\bin\Hostx64\x86"
|
||||||
|
set "VC_LIB=C:\Program Files (x86)\Microsoft Visual Studio\18\BuildTools\VC\Tools\MSVC\14.50.35717\lib\x86"
|
||||||
|
|
||||||
|
if exist "%MSVC_BIN%\ml.exe" (
|
||||||
|
set "ML_EXE=%MSVC_BIN%\ml.exe"
|
||||||
|
set "LINK_EXE=%MSVC_BIN%\link.exe"
|
||||||
|
set LIB_PATHS=/LIBPATH:"%SDK_LIB%" /LIBPATH:"%UCRT_LIB%" /LIBPATH:"%VC_LIB%"
|
||||||
|
set "EXTRA_FLAGS=/NOLOGO /SUBSYSTEM:WINDOWS"
|
||||||
|
goto do_build
|
||||||
|
)
|
||||||
|
|
||||||
rem Check standard MASM32 paths
|
rem Check standard MASM32 paths
|
||||||
if exist "F:\MASM32\masm32\bin\ml.exe" (
|
if exist "F:\MASM32\masm32\bin\ml.exe" (
|
||||||
set "ML_EXE=F:\MASM32\masm32\bin\ml.exe"
|
set "ML_EXE=F:\MASM32\masm32\bin\ml.exe"
|
||||||
|
|
|
||||||
Binary file not shown.
BIN
poker.exe
BIN
poker.exe
Binary file not shown.
BIN
poker.obj
BIN
poker.obj
Binary file not shown.
Loading…
Add table
Reference in a new issue