Fix for source generation

This commit is contained in:
Nicholaus Clark 2022-05-17 00:04:01 -05:00
parent e7ad3117e3
commit b2016d45eb
3 changed files with 13 additions and 2 deletions

View File

@ -97,10 +97,15 @@ FOR /F "usebackq delims=" %%i in (`!VsWhereCmdLine!`) DO (
IF EXIST "%%i\VC\Auxiliary\Build\vcvars32.bat" (
CALL "%%i\VC\Auxiliary\Build\vcvars32.bat" && nmake MSDEV="%PremakeVsVersion%" -f Bootstrap.mak windows
EXIT /B %ERRORLEVEL%
) ELSE (
IF EXIST "%%i\VC\Auxiliary\Build\vcvars64.bat" (
CALL "%%i\VC\Auxiliary\Build\vcvars64.bat" && nmake MSDEV="%PremakeVsVersion%" -f Bootstrap.mak windows
EXIT /B %ERRORLEVEL%
)
)
)
ECHO Could not find vcvars32.bat to setup Visual Studio environment
ECHO Could not find vcvars32.bat or vcvars64.bat to setup Visual Studio environment
EXIT /B 2
REM :VsWhereVisualBootstrap

View File

@ -112,8 +112,10 @@
--
{ "Win32", "Same as x86" },
{ "x64", "Same as x86_64" },
--
{ "default", "Generates default platforms for targets, x86 and x86_64 projects for Windows." }
},
default = "x86",
default = "default",
}
--
@ -166,6 +168,9 @@
filter { "system:windows", "options:arch=x86_64 or arch=x64" }
platforms { "x64" }
filter { "system:windows", "options:arch=default" }
platforms { "x86", "x64" }
filter "configurations:Debug"
defines "_DEBUG"
flags { "Symbols" }

View File

@ -24,6 +24,7 @@
if os.ishost("windows") then
allowedCompilers = {
"vs2022",
"vs2019",
"vs2017",
"vs2015",