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
c9020b2b
Commit
c9020b2b
authored
Aug 13, 2010
by
simonpj@microsoft.com
Browse files
Do not build DPH when GhcProfiled (fixes #4172)
Reason: DPH uses Template Haskell and TH doesn't work in a profiled compiler
parent
6efa3901
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc.mk
View file @
c9020b2b
...
...
@@ -345,6 +345,10 @@ $(eval $(call addPackage,haskeline))
$(foreach
pkg,$(EXTRA_PACKAGES),$(eval
$(call
addPackage,$(pkg))))
ifneq
"$(BootingFromHc)" "YES"
ifneq
"$(GhcProfiled)" "YES"
# DPH uses Template Haskell, and Template Haskell doesn't work
# with a profiled compiler. So if stage-2 is profile, don't build DPH
PACKAGES_STAGE2
+=
\
dph/dph-base
\
dph/dph-prim-interface
\
...
...
@@ -353,6 +357,7 @@ PACKAGES_STAGE2 += \
dph/dph-seq
\
dph/dph-par
endif
endif
# We assume that the stage0 compiler has a suitable bytestring package,
# so we don't have to include it below.
...
...
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