changeset 819:438ed3a72c9d

Added option -d to the compile command.
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Thu, 13 Mar 2008 18:59:54 +0100
parents 372fa4fbbb1d
children 1d06b4aed7cf 09a64d96967a
files src/dil/Compilation.d src/dil/ModuleManager.d src/main.d
diffstat 3 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/dil/Compilation.d	Thu Mar 13 02:21:26 2008 +0100
+++ b/src/dil/Compilation.d	Thu Mar 13 18:59:54 2008 +0100
@@ -18,6 +18,7 @@
   bool[string] versionIds;
   bool releaseBuild;
   bool unittestBuild;
+  bool acceptDeprecated;
   uint structAlign = 4;
 
   this(CC parent = null)
--- a/src/dil/ModuleManager.d	Thu Mar 13 02:21:26 2008 +0100
+++ b/src/dil/ModuleManager.d	Thu Mar 13 18:59:54 2008 +0100
@@ -79,7 +79,7 @@
     return newModule;
   }
 
-  /// Returns the package given a fully package name.
+  /// Returns the package given a f.q. package name.
   /// Returns the root package for an empty string.
   Package getPackage(string pckgFQN)
   {
--- a/src/main.d	Thu Mar 13 02:21:26 2008 +0100
+++ b/src/main.d	Thu Mar 13 18:59:54 2008 +0100
@@ -74,6 +74,8 @@
         cmd.context.releaseBuild = true;
       else if (arg == "-unittest")
         cmd.context.unittestBuild = true;
+      else if (arg == "-d")
+        cmd.context.acceptDeprecated = true;
       else if (arg == "-ps")
         cmd.printSymbolTree = true;
       else if (arg == "-pm")
@@ -407,6 +409,7 @@
   Errors are printed to standard error output.
 
 Options:
+  -d               : accept deprecated code
   -debug           : include debug code
   -debug=level     : include debug(l) code where l <= level
   -debug=ident     : include debug(ident) code