[project @ 1997-11-25 10:27:46 by simonm]
authorsimonm <unknown>
Tue, 25 Nov 1997 10:27:46 +0000 (10:27 +0000)
committersimonm <unknown>
Tue, 25 Nov 1997 10:27:46 +0000 (10:27 +0000)
change -i semantics to match GHC.

ghc/utils/mkdependHS/mkdependHS.prl

index fe86282..f76bee6 100644 (file)
@@ -240,8 +240,10 @@ sub mangle_command_line_args {
 
        } elsif ( /^-D(.*)/ ) { # recognized wherever they occur
            push(@Defines, $_);
-       } elsif ( /^-i(.*)/ ) { # ditto
-           $Import_dirs .= ":$1";
+       } elsif ( /^-i$/ ) {
+           $Import_dirs = ''; # import path cleared!
+       } elsif ( /^-i(.*)/ ) {
+           $Import_dirs = "$1:$Import_dirs";
        } elsif ( /^-I/ ) {
            $Include_dirs .= " $_";
        } elsif ( /^-syslib$/ ) {