projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71c15e1
)
[project @ 1997-11-25 10:27:46 by simonm]
author
simonm
<unknown>
Tue, 25 Nov 1997 10:27:46 +0000
(10:27 +0000)
committer
simonm
<unknown>
Tue, 25 Nov 1997 10:27:46 +0000
(10:27 +0000)
change -i semantics to match GHC.
ghc/utils/mkdependHS/mkdependHS.prl
patch
|
blob
|
history
diff --git
a/ghc/utils/mkdependHS/mkdependHS.prl
b/ghc/utils/mkdependHS/mkdependHS.prl
index
fe86282
..
f76bee6
100644
(file)
--- a/
ghc/utils/mkdependHS/mkdependHS.prl
+++ b/
ghc/utils/mkdependHS/mkdependHS.prl
@@
-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$/ ) {