From eb3272d355705ccbb184c6ed908605a0fc3a0242 Mon Sep 17 00:00:00 2001
From: Cheng Shao <terrorjack@type.dance>
Date: Fri, 4 Oct 2024 20:06:00 +0000
Subject: [PATCH] testsuite: make use of config.interp_force_dyn

This commit takes config.interp_force_dyn into consideration when
setting up TH/ghci way flags.

(cherry picked from commit 93b8af8009a6e174b8d75f766dba2dc4d9aa9119)
---
 testsuite/config/ghc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testsuite/config/ghc b/testsuite/config/ghc
index 02c76f40180..1672d08d4f9 100644
--- a/testsuite/config/ghc
+++ b/testsuite/config/ghc
@@ -279,7 +279,7 @@ def get_compiler_info():
         ghc_env['HAVE_PROFILING'] = 'YES'
 
     # See Note [WayFlags]
-    if config.ghc_dynamic:
+    if config.interp_force_dyn or config.ghc_dynamic:
         config.ghc_th_way_flags = "-dynamic"
         config.ghci_way_flags   = "-dynamic"
         config.plugin_way_flags = "-dynamic"
-- 
GitLab