Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC
Commits:
-
7fb51f54
by mangoiv at 2026-03-17T23:48:00-04:00
1 changed file:
Changes:
| ... | ... | @@ -737,7 +737,7 @@ function test_hadrian() { |
| 737 | 737 | local test_compiler="$instdir/bin/${cross_prefix}ghc$exe"
|
| 738 | 738 | install_bindist _build/bindist/ghc-*/ "$instdir"
|
| 739 | 739 | |
| 740 | - if [[ "${WINDOWS_HOST}" == "no" ]] && [ -z "${CROSS_TARGET:-}" ]
|
|
| 740 | + if [[ "${CI_JOB_NAME}" != *"windows"* ]] && [ -z "${CROSS_TARGET:-}" ]
|
|
| 741 | 741 | then
|
| 742 | 742 | run_hadrian \
|
| 743 | 743 | test \
|
| ... | ... | @@ -920,7 +920,16 @@ function save_test_output() { |
| 920 | 920 | function save_cache () {
|
| 921 | 921 | info "Storing cabal cache from $CABAL_DIR to $CABAL_CACHE..."
|
| 922 | 922 | rm -Rf "$CABAL_CACHE"
|
| 923 | - cp -Rf "$CABAL_DIR" "$CABAL_CACHE"
|
|
| 923 | + if [[ "${CI_JOB_NAME}" == *"darwin"* ]]; then
|
|
| 924 | + # -a makes APFS behave like a COW file system
|
|
| 925 | + # From man CP(1)
|
|
| 926 | + # copy files using clonefile(2).
|
|
| 927 | + # Note that if clonefile(2) is not supported for the target filesystem,
|
|
| 928 | + # then cp will fallback to using copyfile(2) instead to ensure the copy still succeeds.
|
|
| 929 | + cp -Rcf "$CABAL_DIR" "$CABAL_CACHE"
|
|
| 930 | + else
|
|
| 931 | + cp -Rf "$CABAL_DIR" "$CABAL_CACHE"
|
|
| 932 | + fi
|
|
| 924 | 933 | }
|
| 925 | 934 | |
| 926 | 935 | function clean() {
|
| ... | ... | @@ -1024,11 +1033,12 @@ case "$(uname)" in |
| 1024 | 1033 | exe=".exe"
|
| 1025 | 1034 | # N.B. cabal-install expects CABAL_DIR to be a Windows path
|
| 1026 | 1035 | CABAL_DIR="$(cygpath -w "$CABAL_DIR")"
|
| 1027 | - WINDOWS_HOST="yes"
|
|
| 1036 | + ;;
|
|
| 1037 | + Darwin*)
|
|
| 1038 | + exe=""
|
|
| 1028 | 1039 | ;;
|
| 1029 | 1040 | *)
|
| 1030 | 1041 | exe=""
|
| 1031 | - WINDOWS_HOST="no"
|
|
| 1032 | 1042 | ;;
|
| 1033 | 1043 | esac
|
| 1034 | 1044 |