mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-13 22:48:43 +03:00
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:
parent
d852300b1e
commit
27c395caa9
1 changed files with 1 additions and 7 deletions
|
@ -688,15 +688,9 @@ static int linkObjToBinaryMSVC(bool sharedLib) {
|
||||||
args.push_back("/NOLOGO");
|
args.push_back("/NOLOGO");
|
||||||
|
|
||||||
// specify that the image will contain a table of safe exception handlers
|
// 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) {
|
if (!global.params.is64bit) {
|
||||||
args.push_back("/SAFESEH");
|
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");
|
args.push_back("/LARGEADDRESSAWARE");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue