[Git][ghc/ghc][wip/jeltsch/ghc-9-14-building-base] Make `${project_root}` available to all code
Wolfgang Jeltsch pushed to branch wip/jeltsch/ghc-9-14-building-base at Glasgow Haskell Compiler / GHC Commits: a8c7d03b by Wolfgang Jeltsch at 2026-08-10T14:49:02+03:00 Make `${project_root}` available to all code - - - - - 1 changed file: - .gitlab/base-ci.sh Changes: ===================================== .gitlab/base-ci.sh ===================================== @@ -31,34 +31,31 @@ mkdir other-ghcs/opt project_root=$PWD # Create Cabal file for `base` -( - cd libraries/base - sed -E -e 's/^( *ghc-internal)[^[:alnum:]-].*(,|$)/\1\2/' \ - < base.cabal.in \ - > base.cabal -) +cd libraries/base +sed -E -e 's/^( *ghc-internal)[^[:alnum:]-].*(,|$)/\1\2/' \ + < base.cabal.in \ + > base.cabal +cd ${project_root} # Build `base` with the different GHCs for ghc_version in ${ghc_versions} do # Install the GHC - ( - cd other-ghcs/src - archive_file=ghc-${ghc_version}-${platform}.tar.xz - curl https://downloads.haskell.org/~ghc/${ghc_version}/${archive_file} \ - >${ghc_version}.tar.xz - tar -xJf ${ghc_version}.tar.xz - cd ghc-${ghc_version}-* - ./configure --prefix "${project_root}/opt/${ghc_version}" - make install - ) + cd other-ghcs/src + archive_file=ghc-${ghc_version}-${platform}.tar.xz + curl https://downloads.haskell.org/~ghc/${ghc_version}/${archive_file} \ + >${ghc_version}.tar.xz + tar -xJf ${ghc_version}.tar.xz + cd ghc-${ghc_version}-* + ./configure --prefix "${project_root}/opt/${ghc_version}" + make install + cd ${project_root} # Build `base` with the installed GHC - ( - cd libraries/base - cabal build - --with-compiler "${project_root}/other-ghcs/opt/${ghc_version}/bin/ghc" \ - --allow-boot-library-installs \ - -O0 - ) + cd libraries/base + cabal build + --with-compiler "${project_root}/other-ghcs/opt/${ghc_version}/bin/ghc" \ + --allow-boot-library-installs \ + -O0 + cd ${project_root} done View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/a8c7d03b8be7240bbe552030722fdac0... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/a8c7d03b8be7240bbe552030722fdac0... You're receiving this email because of your account on gitlab.haskell.org. Manage all notifications: https://gitlab.haskell.org/-/profile/notifications | Help: https://gitlab.haskell.org/help
participants (1)
-
Wolfgang Jeltsch (@jeltsch)