fix issue 1876: passing /LARGEADDRESSAWARE:NO is a workaround for DWARF debug info, it causes trouble with CodeView debug info

This commit is contained in:
Rainer Schuetze 2016-11-13 10:46:55 +01:00
parent d852300b1e
commit 27c395caa9

View file

@ -688,15 +688,9 @@ static int linkObjToBinaryMSVC(bool sharedLib) {
args.push_back("/NOLOGO");
// specify that the image will contain a table of safe exception handlers
// (32bit only)
// and can handle addresses >2GB (32bit only)
if (!global.params.is64bit) {
args.push_back("/SAFESEH");
}
// because of a LLVM bug, see LDC issue 442
if (global.params.symdebug) {
args.push_back("/LARGEADDRESSAWARE:NO");
} else {
args.push_back("/LARGEADDRESSAWARE");
}