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
4,321
Issues
4,321
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
359
Merge Requests
359
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
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
Glasgow Haskell Compiler
GHC
Commits
a63ad329
Unverified
Commit
a63ad329
authored
Jun 12, 2018
by
Andrey Mokhov
Committed by
GitHub
Jun 12, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update RTS flags (
#613
)
* Update RTS flags See
#611
* More tweaks
parent
8dba6748
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
src/Settings/Packages/Rts.hs
src/Settings/Packages/Rts.hs
+8
-5
No files found.
src/Settings/Packages/Rts.hs
View file @
a63ad329
...
...
@@ -115,6 +115,7 @@ rtsPackageArgs = package rts ? do
,
arg
$
"-DRtsWay=
\"
rts_"
++
show
way
++
"
\"
"
-- Set the namespace for the rts fs functions
,
arg
$
"-DFS_NAMESPACE=rts"
,
arg
$
"-DCOMPILING_RTS"
-- RTS *must* be compiled with optimisations. The INLINE_HEADER macro
-- requires that functions are inlined to work as expected. Inlining
-- only happens for optimised builds. Otherwise we can assume that
...
...
@@ -122,8 +123,13 @@ rtsPackageArgs = package rts ? do
-- provide non-inlined alternatives and hence needs the function to
-- be inlined. See https://github.com/snowleopard/hadrian/issues/90.
,
arg
"-O2"
,
arg
"-fomit-frame-pointer"
,
arg
"-g"
,
Debug
`
wayUnit
`
way
?
arg
"-DDEBUG"
,
Debug
`
wayUnit
`
way
?
pure
[
"-DDEBUG"
,
"-fno-omit-frame-pointer"
,
"-g"
,
"-O0"
]
,
way
`
elem
`
[
debug
,
debugDynamic
]
?
arg
"-DTICKY_TICKY"
,
Profiling
`
wayUnit
`
way
?
arg
"-DPROFILING"
,
Threaded
`
wayUnit
`
way
?
arg
"-DTHREADED_RTS"
...
...
@@ -153,8 +159,7 @@ rtsPackageArgs = package rts ? do
,
input
"//xxhash.c"
?
pure
[
"-O3"
,
"-ffast-math"
,
"-ftree-vectorize"
]
,
"-ftree-vectorize"
]
,
inputs
[
"//Evac.c"
,
"//Evac_thr.c"
]
?
arg
"-funroll-loops"
...
...
@@ -175,7 +180,6 @@ rtsPackageArgs = package rts ? do
-- emits warnings about call-clobbered registers on x86_64
,
inputs
[
"//RetainerProfile.c"
,
"//StgCRun.c"
,
"//win32/ConsoleHandler.c"
,
"//win32/ThrIOManager.c"
]
?
arg
"-w"
,
inputs
[
"//RetainerSet.c"
]
?
arg
"-Wno-format"
-- The above warning suppression flags are a temporary kludge.
-- While working on this module you are encouraged to remove it and fix
-- any warnings in the module. See:
...
...
@@ -184,7 +188,6 @@ rtsPackageArgs = package rts ? do
,
(
not
<$>
flag
GccIsClang
)
?
inputs
[
"//Compact.c"
]
?
arg
"-finline-limit=2500"
,
input
"//StgCRun.c"
?
windowsHost
?
arg
"-Wno-return-local-addr"
,
input
"//RetainerProfile.c"
?
flag
GccIsClang
?
arg
"-Wno-incompatible-pointer-types"
,
windowsHost
?
arg
(
"-DWINVER="
++
windowsVersion
)
...
...
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