From 7935831d4fe51c7947720b6f7141ff58b675d573 Mon Sep 17 00:00:00 2001
From: sof <unknown>
Date: Fri, 9 Jan 1998 13:29:50 +0000
Subject: [PATCH] [project @ 1998-01-09 13:29:50 by sof] Removed support for
 picking up plausible source file names inside the ghc options chunk of the
 command line. It failed to deal with `option-value' stuff present on some
 invocations of ghc (e.g., "-ohi foo.baz").

---
 ghc/utils/mkdependHS/mkdependHS.prl | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/ghc/utils/mkdependHS/mkdependHS.prl b/ghc/utils/mkdependHS/mkdependHS.prl
index 67308451e99b..79ca346f01ae 100644
--- a/ghc/utils/mkdependHS/mkdependHS.prl
+++ b/ghc/utils/mkdependHS/mkdependHS.prl
@@ -285,10 +285,16 @@ sub mangle_command_line_args {
 	    } else {
 		push(@Src_files, $_);
 	    }
-
-	} elsif ($Dashdashes_seen == 1) { # where we ignore unknown options
-	    push(@Src_files, $_) if ! /^-/;
-	}
+        }
+        # Removed support for picking up plausible source file 
+        # names inside the ghc options chunk of the command
+        # line. It failed to deal with `option-value' stuff present
+        # on some invocations of ghc (e.g., "-ohi foo.baz").
+        #  -- sof 12/97
+	#
+	# } elsif ($Dashdashes_seen == 1) {
+	#     push(@Src_files, $_) if ! /^-/;
+	# }
     }
     @File_suffix = sort (@File_suffix);
 }
-- 
GitLab