Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alex D
GHC
Commits
c6144cbc
Commit
c6144cbc
authored
May 06, 2010
by
simonpj@microsoft.com
Browse files
Use -Wwarn for the binary package, becuase it has redundant UNPACK pragmas
parent
60789c09
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc.mk
View file @
c6144cbc
...
...
@@ -627,12 +627,29 @@ include $(patsubst %, %/ghc.mk, $(BUILD_DIRS))
GhcLibHcOpts
+=
-fno-warn-deprecated-flags
GhcBootLibHcOpts
+=
-fno-warn-deprecated-flags
# ----------------------------------------------
# Per-package compiler flags
#
# If you want to add per-package compiler flags, this
# is the place to do it. Do it like this for package <pkg>
#
# libraries/<pkg>_dist-boot_HC_OPTS += -Wwarn
# libraries/<pkg>_dist-install_HC_OPTS += -Wwarn
# Add $(GhcLibHcOpts) to all library builds
$(foreach
pkg,$(PACKAGES)
$(PACKAGES_STAGE2),$(eval
libraries/
$(pkg)_dist-install_HC_OPTS
+=
$
$(GhcLibHcOpts)
))
# XXX Hack; remove this
# Use -Wwarn for dph
$(foreach
pkg,$(PACKAGES_STAGE2),$(eval
libraries/
$(pkg)_dist-install_HC_OPTS
+=
-Wwarn
))
# XXX Hack; remove this
# Use -Wwarn for 'binary' becuase it has redundant UNPACK pragmas
libraries/
binary_dist-install_HC_OPTS
+=
-Wwarn
libraries/
binary_dist-boot_HC_OPTS
+=
-Wwarn
# ----------------------------------------------
# A useful pseudo-target
.PHONY
:
stage1_libs
stage1_libs
:
$(ALL_STAGE1_LIBS)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment