Add back support for -C, for backwards compatibility.

This commit is contained in:
David Nadlinger
2012-06-07 10:58:59 +02:00
parent f131647709
commit fdee1fc725

View File

@@ -26,6 +26,9 @@
// intentionally specified multiple times to get a certain effect (e.g. pass,
// linker options).
//
// Just as with the old LDMD script, arguments can be passed through unmodified
// to LDC by using -Csomearg.
//
// If maintaining this wrapper is deemed too messy at some point, an alternative
// would be to either extend the LLVM command line library to support the DMD
// semantics (unlikely to happen), or to abandon it altogether (except for
@@ -663,6 +666,10 @@ Params parseArgs(int originalArgc, char** originalArgv, ls::Path ldcPath)
goto Lnoarg;
}
}
else if (p[1] == 'C')
{
result.unknownSwitches.push_back(concat("-", p + 2));
}
else
{
Lerror: