Add missing LDMD option handling code.

Reusing the existing parsing code for DMD compatibility was a good
idea, copy-pasting the tool together in the middle of the night not
so much.
This commit is contained in:
David Nadlinger
2012-09-30 02:58:32 +02:00
parent e37cb50999
commit 0c0e88dda1
2 changed files with 7 additions and 2 deletions

View File

@@ -732,6 +732,7 @@ void buildCommandLine(std::vector<const char*>& r, const Params& p)
if (p.allowDeprecated) r.push_back("-d");
if (p.compileOnly) r.push_back("-c");
if (p.coverage) warning("Coverage report generation not yet supported by LDC.");
if (p.emitSharedLib) r.push_back("-shared");
if (p.pic) r.push_back("-relocation-model=pic");
if (p.emitMap) warning("Map file generation not yet supported by LDC.");
if (!p.multiObj) r.push_back("--singleobj");
@@ -764,6 +765,7 @@ void buildCommandLine(std::vector<const char*>& r, const Params& p)
if (p.emitStaticLib) r.push_back("-lib");
if (p.noFloat) warning("-nofloat is ignored by LDC.");
if (p.quiet) r.push_back("-quiet"); // Undocumented.
if (p.release) r.push_back("-release"); // Also disables boundscheck.
if (p.noBoundsChecks) r.push_back("-disable-boundscheck");
if (p.emitUnitTests) r.push_back("-unittest");
pushSwitches("-I=", p.modulePaths, r);