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
366
Merge Requests
366
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
70e78a48
Commit
70e78a48
authored
Oct 03, 2012
by
ian@well-typed.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a -static way, enabled only if dynlibs are used by default
parent
7f91d0da
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
0 deletions
+12
-0
testsuite/config/ghc
testsuite/config/ghc
+5
-0
testsuite/mk/ghc-config.hs
testsuite/mk/ghc-config.hs
+1
-0
testsuite/mk/test.mk
testsuite/mk/test.mk
+6
-0
No files found.
testsuite/config/ghc
View file @
70e78a48
...
...
@@ -56,6 +56,9 @@ if (ghc_with_dynamic_rts == 1):
config.have_shared_libs = True
config.run_ways.append('dyn')
if (ghc_dynamic_by_default == 1):
config.run_ways.append('static')
if (ghc_with_profiling == 1 and ghc_with_threaded_rts == 1):
config.run_ways.append('profthreaded')
...
...
@@ -90,6 +93,7 @@ config.way_flags = {
'prof_hy' : ['-O', '-prof', '-auto-all'],
'prof_hr' : ['-O', '-prof', '-auto-all'],
'dyn' : ['-O', '-dynamic'],
'static' : ['-O', '-static'],
# llvm variants...
'profllvm' : ['-prof', '-auto-all', '-fllvm'],
'profoptllvm' : ['-O', '-prof', '-auto-all', '-fllvm'],
...
...
@@ -123,6 +127,7 @@ config.way_rts_flags = {
'prof_hy' : ['-hy'],
'prof_hr' : ['-hr'],
'dyn' : [],
'static' : [],
# llvm variants...
'profllvm' : ['-p'],
'profoptllvm' : ['-hc', '-p'],
...
...
testsuite/mk/ghc-config.hs
View file @
70e78a48
...
...
@@ -22,6 +22,7 @@ main = do
getGhcField
fields
"GhcUnregisterised"
"Unregisterised"
getGhcField
fields
"GhcWithSMP"
"Support SMP"
getGhcField
fields
"GhcRTSWays"
"RTS ways"
getGhcField
fields
"GhcDynamicByDefault"
"Dynamic by default"
getGhcFieldProgWithDefault
fields
"AR"
"ar command"
"ar"
let
pkgdb_flag
=
case
lookup
"Project version"
fields
of
...
...
testsuite/mk/test.mk
View file @
70e78a48
...
...
@@ -80,6 +80,12 @@ else
RUNTEST_OPTS
+=
-e
ghc_unregisterised
=
0
endif
ifeq
"$(GhcDynamicByDefault)" "YES"
RUNTEST_OPTS
+=
-e
ghc_dynamic_by_default
=
1
else
RUNTEST_OPTS
+=
-e
ghc_dynamic_by_default
=
0
endif
ifeq
"$(GhcWithSMP)" "YES"
RUNTEST_OPTS
+=
-e
ghc_with_smp
=
1
else
...
...
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