[pkg-d-commits] [ldc] 06/95: LDMD: Warn about unsupported new -mscrtlib switch

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 b53f4cddb491e4d96c4031a5164c6d1df97af64e
Author: Martin <noone at nowhere.com>
Date:   Sat Feb 18 22:42:52 2017 +0100

    LDMD: Warn about unsupported new -mscrtlib switch
---
 driver/ldmd.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/driver/ldmd.cpp b/driver/ldmd.cpp
index 863c8cf..9a72eb6 100644
--- a/driver/ldmd.cpp
+++ b/driver/ldmd.cpp
@@ -206,7 +206,8 @@ Where:\n\
   -main            add default main() (e.g. for unittesting)\n\
   -man             open web browser on manual page\n"
 #if 0
-"  -map             generate linker .map file\n"
+"  -map             generate linker .map file\n\
+  -mscrtlib=<name> MS C runtime library to reference from main/WinMain/DllMain\n"
 #endif
 "  -noboundscheck   no array bounds checking (deprecated, use -boundscheck=off)\n\
   -O               optimize\n\
@@ -412,6 +413,8 @@ void translateArgs(size_t originalArgc, char **originalArgv,
        */
       else if (strcmp(p + 1, "m32mscoff") == 0) {
         ldcArgs.push_back("-m32");
+      } else if (strncmp(p + 1, "mscrtlib=", 9) == 0) {
+        goto Lnot_in_ldc;
       } else if (strcmp(p + 1, "profile") == 0) {
         goto Lnot_in_ldc;
       }

-- 
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