rainers / cv2pdb

converter of DMD CodeView/DWARF debug information to PDB files
Artistic License 2.0
472 stars 109 forks source link

Build with Visual Studio 10 Compiler (Windows SDK 7.1) #2

Closed srtlg closed 9 years ago

srtlg commented 9 years ago

Hello, I didn't have VCExpress installed, only the compiler that came with the Windows SDK 7.1. These changes were neded to have it compile. Maybe you want to merge them.

rem 
rem Use Windows SDK compiler to build cv2pdb.exe
rem
if not exist out mkdir out
del out\*.obj
cd out
for %%i in (src/cv2pdb.cpp 
    src/demangle.cpp 
    src/dwarf2pdb.cpp 
    src/readDwarf.cpp
    src/main.cpp 
    src/mspdb.cpp 
    src/PEImage.cpp 
    src/symutil.cpp 
    src/cvutil.cpp 
    src/dviewhelper/dviewhelper.cpp) do (
    cl /nologo /c /wd4996 /EHa ..\%%i
)
cd ..
cl /nologo /Fecv2pdb.exe /EHa /MT out\*.obj advapi32.lib dbghelp.lib
rainers commented 9 years ago

Changes don't cause any troubles with VS 2013, so no problem adding these. If you want the build script to be included, you might want to add it to the makefile. dviewhelper.cpp is not part of cv2pdb.exe, but builds to another DLL. BTW: IIRC the compiler in the SDK is the one that comes with VS 2008.