Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex D
GHC
Commits
b3199f69
Commit
b3199f69
authored
Apr 04, 2011
by
Edward Z. Yang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Flag for defaulting the codegen GhcStageXDefaultNewCodegen.
Signed-off-by:
Edward Z. Yang
<
ezyang@mit.edu
>
parent
856448e1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
0 deletions
+26
-0
compiler/ghc.mk
compiler/ghc.mk
+12
-0
compiler/main/DynFlags.hs
compiler/main/DynFlags.hs
+4
-0
mk/config.mk.in
mk/config.mk.in
+10
-0
No files found.
compiler/ghc.mk
View file @
b3199f69
...
...
@@ -491,6 +491,18 @@ compiler_stage1_HC_OPTS += $(GhcStage1HcOpts)
compiler_stage2_HC_OPTS
+=
$(GhcStage2HcOpts)
compiler_stage3_HC_OPTS
+=
$(GhcStage3HcOpts)
ifeq
"$(GhcStage1DefaultNewCodegen)" "YES"
compiler_stage1_HC_OPTS
+=
-DGHC_DEFAULT_NEW_CODEGEN
endif
ifeq
"$(GhcStage2DefaultNewCodegen)" "YES"
compiler_stage2_HC_OPTS
+=
-DGHC_DEFAULT_NEW_CODEGEN
endif
ifeq
"$(GhcStage3DefaultNewCodegen)" "YES"
compiler_stage3_HC_OPTS
+=
-DGHC_DEFAULT_NEW_CODEGEN
endif
ifneq
"$(BINDIST)" "YES"
compiler_stage2_TAGS_HC_OPTS
=
-package
ghc
...
...
compiler/main/DynFlags.hs
View file @
b3199f69
...
...
@@ -1646,6 +1646,10 @@ defaultFlags
Opt_SharedImplib
,
#
if
GHC_DEFAULT_NEW_CODEGEN
Opt_TryNewCodeGen
,
#
endif
Opt_GenManifest
,
Opt_EmbedManifest
,
Opt_PrintBindContents
,
...
...
mk/config.mk.in
View file @
b3199f69
...
...
@@ -97,6 +97,16 @@ GhcStage1HcOpts=
GhcStage2HcOpts
=
-O2
GhcStage3HcOpts
=
-O2
# These options modify whether or not a built compiler for a bootstrap
# stage defaults to using the new code generation path. The new
# code generation path is a bit slower, so for development just
# GhcStage2DefaultNewCodegen=YES, but it's also a good idea to try
# building all libraries and the stage2 compiler with the
# new code generator, which involves GhcStage1DefaultNewCodegen=YES.
GhcStage1DefaultNewCodegen
=
NO
GhcStage2DefaultNewCodegen
=
NO
GhcStage3DefaultNewCodegen
=
NO
GhcDebugged
=
NO
GhcDynamic
=
NO
...
...
Write
Preview
Markdown
is supported
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