From 399a0396d25c03eb8fcf2448e88e84e29b519321 Mon Sep 17 00:00:00 2001 From: kai Date: Fri, 6 Sep 2013 22:46:06 +0200 Subject: [PATCH] Fix for issue #467 and partial fir for issue #455 --- driver/ldmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver/ldmd.cpp b/driver/ldmd.cpp index 9b6f9548b0..53bb247d37 100644 --- a/driver/ldmd.cpp +++ b/driver/ldmd.cpp @@ -881,7 +881,7 @@ void buildCommandLine(std::vector& r, const Params& p) // LDMD historically did not enable singleobj mode, so in order not to // break build systems as a D1 parting gift, don't change this right now. // This might change based on user feedback, though. - if (!p.multiObj) r.push_back("-singleobj"); + if ((!p.multiObj && !p.compileOnly) || p.objName) r.push_back("-singleobj"); if (p.debugInfo == Debug::normal) r.push_back("-g"); else if (p.debugInfo == Debug::pretendC) r.push_back("-gc"); if (p.alwaysStackFrame) r.push_back("-disable-fp-elim");