mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-01 07:30:43 +03:00
Fix D1 build.
This commit is contained in:
parent
060ba45c8e
commit
28a65ff689
2 changed files with 14 additions and 0 deletions
|
@ -34,6 +34,12 @@ cl::list<std::string> runargs("run",
|
|||
cl::Positional,
|
||||
cl::PositionalEatsArgs);
|
||||
|
||||
#if DMDV1
|
||||
static cl::opt<bool, true> useDeprecated("d",
|
||||
cl::desc("Allow deprecated language features"),
|
||||
cl::ZeroOrMore,
|
||||
cl::location(global.params.useDeprecated));
|
||||
#else
|
||||
static cl::opt<ubyte, true> useDeprecated(
|
||||
cl::desc("Allow deprecated code/language features:"),
|
||||
cl::ZeroOrMore,
|
||||
|
@ -44,6 +50,7 @@ static cl::opt<ubyte, true> useDeprecated(
|
|||
clEnumValEnd),
|
||||
cl::location(global.params.useDeprecated),
|
||||
cl::init(2));
|
||||
#endif
|
||||
|
||||
#if DMDV2
|
||||
cl::opt<bool, true> enforcePropertySyntax("property",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue