forked from github/server
vs 2019 build for x86, not x64
This commit is contained in:
parent
efaa33af35
commit
ba3b608296
2 changed files with 20 additions and 0 deletions
|
@ -1769,6 +1769,7 @@ static variant var_copy_regions(variant x)
|
|||
arg_regions *dst;
|
||||
|
||||
x.v = dst = malloc(sizeof(arg_regions));
|
||||
assert(dst);
|
||||
dst->nregions = src->nregions;
|
||||
src->nregions = 0;
|
||||
dst->regions = src->regions;
|
||||
|
|
19
vs2019-build.bat
Normal file
19
vs2019-build.bat
Normal file
|
@ -0,0 +1,19 @@
|
|||
@ECHO OFF
|
||||
IF "%WIN32_DEV%" == "" SET WIN32_DEV="C:\Libraries"
|
||||
SET CMAKE_ROOT=%ProgramFiles%\CMake
|
||||
IF "%LUA_DEV%" == "" SET LUA_DEV="%ProgramFiles(x86)%/Lua/5.1"
|
||||
SET VSVERSION=16
|
||||
SET SRCDIR=%CD%
|
||||
REM CD ..
|
||||
REM SET ERESSEA=%CD%
|
||||
REM CD %SRCDIR%
|
||||
|
||||
IF exist build-vs%VSVERSION% goto HAVEDIR
|
||||
mkdir build-vs%VSVERSION%
|
||||
:HAVEDIR
|
||||
cd build-vs%VSVERSION%
|
||||
IF NOT EXIST CMakeCache.txt GOTO NOCACHE
|
||||
DEL CMakeCache.txt
|
||||
:NOCACHE
|
||||
"%CMAKE_ROOT%\bin\cmake.exe" -A Win32 -G "Visual Studio %VSVERSION%" -DCMAKE_PREFIX_PATH="%LUA_DEV%;%WIN32_DEV%" -DCMAKE_MODULE_PATH="%SRCDIR%/cmake/Modules" -DCMAKE_SUPPRESS_REGENERATION=TRUE ..
|
||||
PAUSE
|
Loading…
Add table
Reference in a new issue