mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-14 03:43:13 +01:00
Add back support for -C, for backwards compatibility.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user