[pkg-d-commits] [ldc] 41/74: Fix mistake in object file type autodetection

Matthias Klumpp mak at moszumanska.debian.org
Thu Jul 13 20:54:17 UTC 2017


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

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

commit 6c6379d534ef44cf38cafed5707f0d39310e820d
Author: Martin <noone at nowhere.com>
Date:   Mon May 22 22:40:22 2017 +0200

    Fix mistake in object file type autodetection
---
 driver/main.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/driver/main.cpp b/driver/main.cpp
index c09696b..33f1a65 100644
--- a/driver/main.cpp
+++ b/driver/main.cpp
@@ -543,15 +543,15 @@ void parseCommandLine(int argc, char **argv, Strings &sourceFiles,
     const char *ext = FileName::ext(global.params.objname);
     if (!ext) {
       // keep things as they are
-    } else if (opts::output_ll != cl::BOU_FALSE &&
+    } else if (opts::output_ll.getNumOccurrences() == 0 &&
                strcmp(ext, global.ll_ext) == 0) {
       global.params.output_ll = OUTPUTFLAGset;
       global.params.output_o = OUTPUTFLAGno;
-    } else if (opts::output_bc != cl::BOU_FALSE &&
+    } else if (opts::output_bc.getNumOccurrences() == 0 &&
                strcmp(ext, global.bc_ext) == 0) {
       global.params.output_bc = OUTPUTFLAGset;
       global.params.output_o = OUTPUTFLAGno;
-    } else if (opts::output_s != cl::BOU_FALSE &&
+    } else if (opts::output_s.getNumOccurrences() == 0 &&
                strcmp(ext, global.s_ext) == 0) {
       global.params.output_s = OUTPUTFLAGset;
       global.params.output_o = OUTPUTFLAGno;

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