summaryrefslogtreecommitdiff
path: root/testsuite/config
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2021-09-10 11:47:09 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-10-12 19:16:40 -0400
commit05303f686fae8f1050c1cfb08225e39a5f13a7a1 (patch)
tree95fd87b1daa54462c29e9f1c64c2dbbc87d33262 /testsuite/config
parent3b1c12d353eef24b29601798874eb875978452cd (diff)
downloadhaskell-05303f686fae8f1050c1cfb08225e39a5f13a7a1.tar.gz
testsuite: Clean up dynlib support predicates
Previously it was unclear whether req_shared_libs should require: * that the platform supports dynamic library loading, * that GHC supports dynamic linking of Haskell code, or * that the dyn way libraries were built Clarify by splitting the predicate into two: * `req_dynamic_lib_support` demands that the platform support dynamic linking * `req_dynamic_hs` demands that the GHC support dynamic linking of Haskell code on the target platform Naturally `req_dynamic_hs` cannot be true unless `req_dynamic_lib_support` is also true.
Diffstat (limited to 'testsuite/config')
-rw-r--r--testsuite/config/ghc7
1 files changed, 4 insertions, 3 deletions
diff --git a/testsuite/config/ghc b/testsuite/config/ghc
index 6d90e83397..aed4c22fb0 100644
--- a/testsuite/config/ghc
+++ b/testsuite/config/ghc
@@ -53,11 +53,12 @@ if ghc_with_threaded_rts:
config.run_ways.append('nonmoving_thr')
if ghc_with_dynamic_rts:
- config.have_shared_libs = True
-
-if ghc_with_dynamic_rts:
+ config.supports_dynamic_libs = True
config.run_ways.append('dyn')
+if windows:
+ config.supports_dynamic_hs = False
+
if (config.have_profiling and ghc_with_threaded_rts):
config.run_ways.append('profthreaded')