加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build64_nt5.bat 1.44 KB
一键复制 编辑 原始数据 按行查看 历史
longpanda 提交于 2020-05-25 22:42 . add NT5 NT6
@echo off
REM set right vcvarsall.bat file path
set VCVARSALL="C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat"
for %%i in (7 8 9 10 11 12 13 14 15 16 17 18 19 20) do (
if exist "C:\Program Files (x86)\Microsoft Visual Studio %%i.0\VC\vcvarsall.bat" (
set VCVARSALL="C:\Program Files (x86)\Microsoft Visual Studio %%i.0\VC\vcvarsall.bat"
goto Main
)
)
:Main
if not exist %VCVARSALL% (
echo Please set right vcvarsall.bat path
exit /b 1
)
echo %VCVARSALL% amd64
call %VCVARSALL% amd64
if exist vtoydump.exe del /q vtoydump.exe
cl.exe /c src/vtoydump_windows.c /DVTOY_NT5 /I./src /GS /GL /W3 /Gy /Zc:wchar_t /Zi /Gm- /O2 /fp:precise /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_LIB" /D "_UNICODE" /D "UNICODE" /errorReport:prompt /WX- /Zc:forScope /Gd /Oi /MT /EHsc /nologo
link.exe vtoydump_windows.obj /OUT:"vtoydump.exe" /MANIFEST /LTCG /NXCOMPAT /PDB:"vc120.pdb" /DYNAMICBASE "kernel32.lib" "user32.lib" "gdi32.lib" "winspool.lib" "comdlg32.lib" "advapi32.lib" "shell32.lib" "ole32.lib" "oleaut32.lib" "uuid.lib" "odbc32.lib" "odbccp32.lib" /DEBUG /MACHINE:X64 /OPT:REF /INCREMENTAL:NO /SUBSYSTEM:CONSOLE",5.02" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /OPT:ICF /ERRORREPORT:PROMPT /NOLOGO /TLBID:1
del /q *.pdb
del /q *.manifest
del /q vtoydump_windows.obj
if not exist vtoydump.exe (
echo Failed to build vtoydump
exit /b 1
)
echo Build vtoydump for amd64 success ...
echo.
pause
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化