[pkg-d-commits] [ldc] 12/95: Add new switch -mv=<package.module>=<filespec>

Matthias Klumpp mak at moszumanska.debian.org
Thu Jul 13 20:53:55 UTC 2017


This is an automated email from the git hooks/post-receive script.

mak pushed a commit to annotated tag v1.3.0-beta1
in repository ldc.

commit 0b03cda37903489cd1986f71c19edaf0b3dd9128
Author: Martin <noone at nowhere.com>
Date:   Sun Feb 19 03:02:02 2017 +0100

    Add new switch -mv=<package.module>=<filespec>
---
 driver/cl_options.cpp | 7 +++++++
 driver/ldmd.cpp       | 3 ++-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/driver/cl_options.cpp b/driver/cl_options.cpp
index 44411ba..c280428 100644
--- a/driver/cl_options.cpp
+++ b/driver/cl_options.cpp
@@ -319,6 +319,13 @@ cl::opt<std::string>
          cl::Hidden, cl::init(""));
 #endif
 
+static StringsAdapter
+    modFileAliasStringsStore("mv", global.params.modFileAliasStrings);
+static cl::list<std::string, StringsAdapter> modFileAliasStrings(
+    "mv", cl::desc("Use <filespec> as source file for <package.module>"),
+    cl::value_desc("<package.module>=<filespec>"),
+    cl::location(modFileAliasStringsStore));
+
 cl::opt<llvm::Reloc::Model> mRelocModel(
     "relocation-model", cl::desc("Relocation model"),
 #if LDC_LLVM_VER < 309
diff --git a/driver/ldmd.cpp b/driver/ldmd.cpp
index a87c75d..fcaf3e2 100644
--- a/driver/ldmd.cpp
+++ b/driver/ldmd.cpp
@@ -214,7 +214,8 @@ Where:\n\
 #if 0
 "  -mscrtlib=<name> MS C runtime library to reference from main/WinMain/DllMain\n"
 #endif
-"  -noboundscheck   no array bounds checking (deprecated, use -boundscheck=off)\n\
+"  -mv=<package.module>=<filespec>  use <filespec> as source file for <package.module>\n\
+  -noboundscheck   no array bounds checking (deprecated, use -boundscheck=off)\n\
   -O               optimize\n\
   -o-              do not write object file\n\
   -od=<directory>  write object & library files to directory\n\

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-d/ldc.git



More information about the pkg-d-commits mailing list