8000 Merge pull request #1 from coderforlife/(null) · coderforlife/pe-file@1776273 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1776273

Browse files
committed
Merge pull request #1 from coderforlife/(null)
Added MSVC Debug Compile Script
2 parents 1ef118c + f694680 commit 1776273

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

build-msvc-debug.bat

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
@echo off
2+
3+
:: This builds using MSVC VS90 (.NET 2.0)
4+
5+
set FLAGS=/nologo /MDd /D _DEBUG /Zi /W4 /wd4201 /wd4480 /O2 /GS /GL /EHa /D _UNICODE /D UNICODE
6+
set FILES=PEFile.cpp PEFileResources.cpp
7+
8+
echo Compiling 32-bit...
9+
call "%VS90COMNTOOLS%\..\..\VC\vcvarsall.bat" x86
10+
cl %FLAGS% /FdPEFile_d.pdb /c %FILES%
11+
lib /nologo /ltcg /out:PEFile_d.lib *.obj
12+
del /F /Q *.obj >NUL 2>&1
13+
echo.
14+
15+
echo Compiling 64-bit...
16+
call "%VS90COMNTOOLS%\..\..\VC\vcvarsall.bat" x64
17+
cl %FLAGS% /FdPEFile64_d.pdb /c %FILES%
18+
lib /nologo /ltcg /out:PEFile64_d.lib *.obj
19+
del /F /Q *.obj >NUL 2>&1
20+
pause

0 commit comments

Comments
 (0)
0