Sven Tennie pushed to branch wip/supersven/cross-testsuite at Glasgow Haskell Compiler / GHC
Commits:
fd9c75a0 by Sven Tennie at 2026-05-30T23:49:55+02:00
Create iserv_wrapper, execute it with Qemu
- - - - -
1 changed file:
- .gitlab/ci.sh
Changes:
=====================================
.gitlab/ci.sh
=====================================
@@ -709,7 +709,27 @@ function test_hadrian() {
# > main = putStrLn "hello world"
run diff -w expected actual
- EXTRA_HC_OPTS="${EXTRA_HC_OPTS:+${EXTRA_HC_OPTS} }-fexternal-interpreter"
+ if [[ "${CROSS_EMULATOR:-}" == qemu-* ]]; then
+ cat > "${TOP}/tmp/iserv_main.hs" <<'EOF'
+import GHCi.Server (defaultServer)
+main :: IO ()
+main = defaultServer
+EOF
+ local iserv_bin="${TOP}/tmp/ghc-iserv-cross"
+ run "${test_compiler}" \
+ -package ghci \
+ -threaded \
+ -optl-Wl,--export-dynamic \
+ "${TOP}/tmp/iserv_main.hs" \
+ -o "${iserv_bin}"
+ local iserv_wrapper="${TOP}/tmp/iserv-wrapper.sh"
+ cat > "${iserv_wrapper}" <
participants (1)
-
Sven Tennie (@supersven)