Magnus pushed to branch wip/mangoiv/ci-stages at Glasgow Haskell Compiler / GHC

Commits:

2 changed files:

Changes:

  • .gitlab/ci.sh
    ... ... @@ -697,6 +697,7 @@ function test_hadrian() {
    697 697
         return
    
    698 698
       # If we have set CROSS_EMULATOR, then can't test using normal testsuite.
    
    699 699
       elif [ -n "${CROSS_EMULATOR:-}" ] && [[ "${CROSS_TARGET:-}" != *"wasm"* ]]; then
    
    700
    +    info "Cross compiling with CROSS_EMULATOR='$CROSS_EMULATOR' and CROSS_TARGET='$CROSS_TARGET'"
    
    700 701
         local instdir="$TOP/_build/install"
    
    701 702
         local test_compiler="$instdir/bin/${cross_prefix}ghc$exe"
    
    702 703
         install_bindist $dist_dir/ghc-*/ "$instdir"
    
    ... ... @@ -720,6 +721,7 @@ function test_hadrian() {
    720 721
         # > main = putStrLn "hello world"
    
    721 722
         run diff -w expected actual
    
    722 723
       elif [[ -n "${REINSTALL_GHC:-}" ]]; then
    
    724
    +    info "Running with reinstall GHC $REINSTALL_GHC"
    
    723 725
         run_hadrian \
    
    724 726
           test \
    
    725 727
           --test-root-dirs=testsuite/tests/stage1 \
    
    ... ... @@ -754,6 +756,8 @@ function test_hadrian() {
    754 756
           if [ $test_compiler_backend != "\"$BIGNUM_BACKEND\"" ]; then
    
    755 757
             fail "Test compiler has a different BIGNUM_BACKEND ($test_compiler_backend) than requested ($BIGNUM_BACKEND)"
    
    756 758
           fi
    
    759
    +    else 
    
    760
    +      info "CROSS_TARGET=$CROSS_TARGET"
    
    757 761
         fi
    
    758 762
     
    
    759 763
         # If we are doing a release job, check the compiler can build a profiled executable
    

  • hadrian/doc/cross-compile.md
    1
    +**This is severely outdated. And is here merely for historical interest**
    
    2
    +
    
    1 3
     ## Build a cross-compiling GHC
    
    2 4
     
    
    3 5
     In this example, our host machine is "Ubuntu 16.04.2 LTS, Linux ubuntu 4.4.0-79-generic 86_64".