[Git][ghc/ghc][wip/supersven/cross-compiler-manual-test-jobs] ci: symlink bootstrap GHC for test tool builds in cross test job
Sven Tennie pushed to branch wip/supersven/cross-compiler-manual-test-jobs at Glasgow Haskell Compiler / GHC Commits: dd382451 by Sven Tennie at 2026-06-07T18:00:07+00:00 ci: symlink bootstrap GHC for test tool builds in cross test job Cross-compiler bindist only provides the cross-prefixed ghc binary. Hadrian needs a native ghc at _build/install/bin/ghc to build test support tools (check-exact, ghc-config). Symlink to bootstrap GHC which is on PATH after ci.sh setup. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> - - - - - 1 changed file: - .gitlab/ci.sh Changes: ===================================== .gitlab/ci.sh ===================================== @@ -652,6 +652,13 @@ function test_hadrian_cross_full() { tar xJf "${BIN_DIST_NAME}.tar.xz" install_bindist ghc-*/ "$instdir" + # Cross-compiler bindist provides only the cross-prefixed ghc binary, not a + # native ghc. Hadrian needs a native ghc at this path to build test support + # tools (check-exact, ghc-config). Symlink to the bootstrap GHC from setup. + if [[ ! -e "$instdir/bin/ghc" ]]; then + ln -sf "$(command -v ghc)" "$instdir/bin/ghc" + fi + EXTRA_HC_OPTS="-fexternal-interpreter" run_hadrian \ test \ --summary-junit=./junit.xml \ View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/dd38245169e7890f7e486d4b77a7c400... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/dd38245169e7890f7e486d4b77a7c400... You're receiving this email because of your account on gitlab.haskell.org.
participants (1)
-
Sven Tennie (@supersven)