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
Glasgow Haskell Compiler
GHC
Commits
cdaa0b92
Commit
cdaa0b92
authored
Aug 30, 2008
by
Ian Lynagh
Browse files
Fix building the GHC API with profiling
parent
8ad1e840
Changes
2
Hide whitespace changes
Inline
Side-by-side
compiler/Makefile
View file @
cdaa0b92
...
...
@@ -160,6 +160,13 @@ COMMON_CONFIGURE_FLAGS += --ld-option=-Wl,--relax
endif
endif
# We need to turn on profiling either if we have been asked to
# (GhcLibProfiled = YES) or if we want GHC itself to be compiled with
# profiling enabled (GhcProfiled = YES).
ifneq
"$(GhcLibProfiled) $(GhcProfiled)" "NO NO"
CONFIGURE_FLAGS_STAGE2
+=
--enable-library-profiling
endif
ifeq
"$(HOSTPLATFORM)" "i386-unknown-mingw32"
# The #include is vital for the via-C route with older compilers, else the C
# compiler doesn't realise that the stcall foreign imports are indeed
...
...
mk/config.mk.in
View file @
cdaa0b92
...
...
@@ -241,6 +241,7 @@ GhcStage3HcOpts=-O2
GhcProfiled
=
NO
GhcDebugged
=
NO
GhcLibProfiled
=
NO
# Build shared and/or static libs?
BuildSharedLibs
=
@BuildSharedLibs@
...
...
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