Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gesh
GHC
Commits
c892b917
Commit
c892b917
authored
27 years ago
by
sof
Browse files
Options
Downloads
Patches
Plain Diff
[project @ 1997-10-30 22:45:08 by sof]
New option: -W, suppress duplicate interface file warnings
parent
7b4287b8
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ghc/utils/mkdependHS/mkdependHS.prl
+8
-4
8 additions, 4 deletions
ghc/utils/mkdependHS/mkdependHS.prl
with
8 additions
and
4 deletions
ghc/utils/mkdependHS/mkdependHS.prl
+
8
−
4
View file @
c892b917
...
...
@@ -32,6 +32,7 @@ mkdependHS-specific options (not between --'s):
-v Be verbose.
-v -v Be very verbose.
-W No warnings
-f blah Use "blah" as the makefile, rather than "makefile"
or "Makefile".
-o <osuf> Use <osuf> as the "object file" suffix ( default: o)
...
...
@@ -54,8 +55,9 @@ mkdependHS-specific options (not between --'s):
EOUSAGE
$Status = 0; # just used for exit() status
$Verbose = 0; # 1 => verbose, 2 => very verbose
$Status = 0; # just used for exit() status
$Verbose = 0; # 1 => verbose, 2 => very verbose
$Warnings = 1; # 1 => warn about duplicate interface files
$Dashdashes_seen = 0;
# Try to guess how to run gcc's CPP directly -------------
...
...
@@ -239,7 +241,7 @@ sub mangle_command_line_args {
} elsif ( /^-D(.*)/ ) { # recognized wherever they occur
push(@Defines, $_);
} elsif ( /^-i(.*)/ ) {
} elsif ( /^-i(.*)/ ) {
# ditto
$Import_dirs .= ":$1";
} elsif ( /^-I/ ) {
$Include_dirs .= " $_";
...
...
@@ -248,6 +250,8 @@ sub mangle_command_line_args {
} elsif ($Dashdashes_seen != 1) { # not between -- ... --
if ( /^-v$/ ) {
$Verbose++;
} elsif ( /^-W$/ ) {
$Warnings = 0;
} elsif ( /^-f(.*)/ ) {
$Makefile = &grab_arg_arg('-f',$1);
} elsif ( /^-o(.*)/ ) {
...
...
@@ -318,7 +322,7 @@ sub preprocess_import_dirs {
next unless /(.*)\.hi$/;
$thing = $1;
if ($ModuleIn{$thing} && $ModuleIn{$thing} ne $d) {
print STDERR "$Pgm: warning: $thing.hi appears in both $ModuleIn{$thing} and $d!\n";
print STDERR "$Pgm: warning: $thing.hi appears in both $ModuleIn{$thing} and $d!\n"
if ($Warnings)
;
} else {
$ModuleIn{$thing} = $d;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment