From a462a85dc65f362063723946e02e86d0abd05f28 Mon Sep 17 00:00:00 2001
From: Cheng Shao <terrorjack@type.dance>
Date: Tue, 1 Oct 2024 19:25:44 +0000
Subject: [PATCH] testsuite: skip rdynamic on wasm

(cherry picked from commit 47989ecc6ddfbe68ba2213c6c2b0d29ed958c330)
---
 testsuite/tests/rts/linker/all.T | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/testsuite/tests/rts/linker/all.T b/testsuite/tests/rts/linker/all.T
index 7f02ee6f249..d23871d3bea 100644
--- a/testsuite/tests/rts/linker/all.T
+++ b/testsuite/tests/rts/linker/all.T
@@ -137,6 +137,8 @@ test('rdynamic', [ unless(opsys('linux') or opsys('mingw32'), skip)
                  #  '-rdynamic' ghc, load modules only via dlopen(RTLD_BLOBAL) and more.
                  , omit_ghci
                  , js_broken(22374)
+                 # RTS linker doesn't work on non-dyn ways on wasm32
+                 , when(arch('wasm32'), skip)
                  ],
      compile_and_run, ['-rdynamic -package ghc'])
 
-- 
GitLab