summaryrefslogtreecommitdiff
path: root/testsuite/config
diff options
context:
space:
mode:
authorIan Lynagh <ian@well-typed.com>2012-10-03 17:58:50 +0100
committerIan Lynagh <ian@well-typed.com>2012-10-03 17:58:50 +0100
commit70e78a4861e256deb62466aeade6777f2bf74201 (patch)
treed542df7e8c3eea4134f66758d4e2f7c87d288b91 /testsuite/config
parent7f91d0da2072364dd77d5c519ad83902434d3eb2 (diff)
downloadhaskell-70e78a4861e256deb62466aeade6777f2bf74201.tar.gz
Add a -static way, enabled only if dynlibs are used by default
Diffstat (limited to 'testsuite/config')
-rw-r--r--testsuite/config/ghc5
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/config/ghc b/testsuite/config/ghc
index 8c8c329c8e..c2f80f8424 100644
--- a/testsuite/config/ghc
+++ b/testsuite/config/ghc
@@ -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'],