From 4343965106b9039f2b5dc76df6990d1281d98dc5 Mon Sep 17 00:00:00 2001 From: kai Date: Fri, 24 May 2013 16:07:25 +0200 Subject: [PATCH] Use /LARGEADDRESSAWARE:NO only for debug builds with LLVM 3.4. Most of the LLVM bugs regarding relocations are fixed now. --- driver/linker.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/driver/linker.cpp b/driver/linker.cpp index 052aa9ae..6f2fa043 100644 --- a/driver/linker.cpp +++ b/driver/linker.cpp @@ -238,6 +238,10 @@ static int linkObjToBinaryWin(bool sharedLib) args.push_back("/DYNAMICBASE"); // because of a LLVM bug + // most of the bug is fixed in LLVM 3.4 +#if LDC_LLVM_VER >= 304 + if (global.params.symdebug) +#endif args.push_back("/LARGEADDRESSAWARE:NO"); // output debug information