mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-03-02 08:46:29 +00:00
link to debug runtime
This commit is contained in:
parent
56833bd4f5
commit
e8f681855c
@ -10,11 +10,17 @@ index bd0c4c5..1210fd2 100644
|
||||
:NODEBUG
|
||||
@if "%1"=="amalg" goto :AMALGDLL
|
||||
@if "%1"=="static" goto :STATIC
|
||||
@@ -76,6 +77,7 @@ buildvm -m folddef -o lj_folddef.h lj_opt_fold.c
|
||||
-%LJCOMPILE% /MD /DLUA_BUILD_AS_DLL lj_*.c lib_*.c
|
||||
+@if "%DEBUG%"=="1" set LJCOMPILE=%LJCOMPILE% /MDd
|
||||
+@if "%DEBUG%"=="" set LJCOMPILE=%LJCOMPILE% /MD
|
||||
+%LJCOMPILE% /DLUA_BUILD_AS_DLL lj_*.c lib_*.c
|
||||
@if errorlevel 1 goto :BAD
|
||||
%LJLINK% /DLL /out:%LJDLLNAME% lj_*.obj lib_*.obj
|
||||
@if errorlevel 1 goto :BAD
|
||||
@goto :MTDLL
|
||||
:STATIC
|
||||
+@if "%DEBUG%"=="1" set LJCOMPILE=%LJCOMPILE% /MTd
|
||||
+@if "%DEBUG%"=="" set LJCOMPILE=%LJCOMPILE% /MT
|
||||
%LJCOMPILE% lj_*.c lib_*.c
|
||||
@if errorlevel 1 goto :BAD
|
||||
%LJLIB% /OUT:%LJLIBNAME% lj_*.obj lib_*.obj
|
||||
%LJLIB% /OUT:%LJLIBNAME% lj_*.obj lib_*.obj
|
Loading…
x
Reference in New Issue
Block a user