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
Yiming Yang
GHC
Commits
847b9f6a
Commit
847b9f6a
authored
16 years ago
by
Simon Marlow
Browse files
Options
Downloads
Patches
Plain Diff
use -O2 for libraries and stage2 compiler by default
parent
4404f20e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mk/config.mk.in
+5
-5
5 additions, 5 deletions
mk/config.mk.in
with
5 additions
and
5 deletions
mk/config.mk.in
+
5
−
5
View file @
847b9f6a
...
...
@@ -231,8 +231,8 @@ GhcHcOpts=-Rghc-timing
# These are placed later on the command line, and may therefore
# override options from $(GhcHcOpts).
GhcStage1HcOpts
=
GhcStage2HcOpts
=
GhcStage3HcOpts
=
GhcStage2HcOpts
=
-O2
GhcStage3HcOpts
=
-O2
GhcProfiled
=
NO
GhcDebugged
=
NO
...
...
@@ -394,7 +394,7 @@ GhcThreaded = $(if $(findstring thr,$(GhcRTSWays)),YES,NO)
# -dcore-lint or -H32m. The ones that are *essential* are wired into
# the build system.
#
# -O is pretty desirable, otherwise no inlining of prelude
# -O
(2)
is pretty desirable, otherwise no inlining of prelude
# things (incl "+") happens when compiling with this compiler
#
# -fgenerics switches on generation of support code for
...
...
@@ -402,7 +402,7 @@ GhcThreaded = $(if $(findstring thr,$(GhcRTSWays)),YES,NO)
# but we switch it on for the libraries so that we generate
# the code in case someone importing wants it
GhcLibHcOpts
=
-O
-Rghc-timing
-fgenerics
GhcLibHcOpts
=
-O
2
-Rghc-timing
-fgenerics
# Win32 only: Enable the RTS and libraries to be built as DLLs
DLLized
=
@EnableWin32DLLs@
...
...
@@ -684,7 +684,7 @@ INSTALL_DIR = $(MKDIRHIER)
#
# SRC_HC_OPTS += -O
SRC_HC_OPTS
+=
-H
16
m
-O
SRC_HC_OPTS
+=
-H
32
m
-O
# These flags make flex 8-bit
SRC_FLEX_OPTS
+=
-8
...
...
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