From fdee1fc725098fd8ad5e14d790cf44f821291c69 Mon Sep 17 00:00:00 2001 From: David Nadlinger Date: Thu, 7 Jun 2012 10:58:59 +0200 Subject: [PATCH] Add back support for -C, for backwards compatibility. --- driver/ldmd.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/driver/ldmd.cpp b/driver/ldmd.cpp index 8e01b91d..bd319c3d 100644 --- a/driver/ldmd.cpp +++ b/driver/ldmd.cpp @@ -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: