mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-08-05 22:10:04 +02:00
LDMD: Don't enable -singleobj for D1.
This commit is contained in:
@@ -745,7 +745,12 @@ void buildCommandLine(std::vector<const char*>& r, const Params& p)
|
|||||||
if (p.emitSharedLib) r.push_back("-shared");
|
if (p.emitSharedLib) r.push_back("-shared");
|
||||||
if (p.pic) r.push_back("-relocation-model=pic");
|
if (p.pic) r.push_back("-relocation-model=pic");
|
||||||
if (p.emitMap) warning("Map file generation not yet supported by LDC.");
|
if (p.emitMap) warning("Map file generation not yet supported by LDC.");
|
||||||
|
#ifndef DMDV1
|
||||||
|
// 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) r.push_back("-singleobj");
|
||||||
|
#endif
|
||||||
if (p.debugInfo == Debug::normal) r.push_back("-g");
|
if (p.debugInfo == Debug::normal) r.push_back("-g");
|
||||||
else if (p.debugInfo == Debug::pretendC) r.push_back("-gc");
|
else if (p.debugInfo == Debug::pretendC) r.push_back("-gc");
|
||||||
if (p.alwaysStackFrame) r.push_back("-disable-fp-elim");
|
if (p.alwaysStackFrame) r.push_back("-disable-fp-elim");
|
||||||
|
|||||||
Reference in New Issue
Block a user