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
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Alex D
GHC
Commits
3ca54aeb
Commit
3ca54aeb
authored
18 years ago
by
Simon Marlow
Browse files
Options
Downloads
Patches
Plain Diff
Use -package-name rather than -ignore-package
parent
b93ff3a3
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mk/package.mk
+4
-4
4 additions, 4 deletions
mk/package.mk
with
4 additions
and
4 deletions
mk/package.mk
+
4
−
4
View file @
3ca54aeb
...
...
@@ -153,20 +153,20 @@ SRC_HSC2HS_OPTS += -I.
ifeq
"$(STANDALONE_PACKAGE)" "NO"
HC
=
$(
GHC_INPLACE
)
IGNORE_PACKAGE_FLAG
=
-
ignore-
package
IGNORE_PACKAGE_FLAG
=
-package
-name
$(
PACKAGE
)
-
$(
VERSION
)
else
# Only use -ignore-package if supported by HC; i.e., ghc-6.3 and later.
# (Don't like the use of slow $(shell ..) in Makefiles, but can't see a way around it here.)
ifeq
"$(strip $(GHC))" ""
IGNORE_PACKAGE_FLAG
=
-ignore-package
IGNORE_PACKAGE_FLAG
=
-ignore-package
$(
PACKAGE
)
else
# Making the assumption here that standalone packages will be using mk/config.mk:GHC
IGNORE_PACKAGE_FLAG
=
$(
shell
if
(
test
$(
GhcCanonVersion
)
-ge
603
);
then
echo
"-ignore-package"
;
else
echo
"-package-name"
;
fi
)
IGNORE_PACKAGE_FLAG
=
$(
shell
if
(
test
$(
GhcCanonVersion
)
-ge
603
);
then
echo
"-ignore-package"
;
else
echo
"-package-name"
;
fi
)
$(
PACKAGE
)
endif
endif
# STANDALONE_PACKAGE
ifeq
"$(NON_HS_PACKAGE)" ""
SRC_HC_OPTS
+=
$(
IGNORE_PACKAGE_FLAG
)
$(
PACKAGE
)
SRC_HC_OPTS
+=
$(
IGNORE_PACKAGE_FLAG
)
SRC_HC_OPTS
+=
$(
GhcLibHcOpts
)
SRC_HC_OPTS
+=
$(
patsubst %,
-package
%,
$(
PACKAGE_DEPS
))
endif
...
...
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