From 2c348af1eb5af5436cd66e7273b70551c18e050a Mon Sep 17 00:00:00 2001 From: Shayne Fletcher Date: Fri, 3 Jan 2025 16:36:45 -0500 Subject: [PATCH] remove hadrian extra cabal flags --- ...hc-9.10.1.yml => ghc-lib-ghc-HEAD-ghc-9.12.1.yml} | 4 ++-- ...-9.10.1.yml => ghc-lib-ghc-master-ghc-9.12.1.yml} | 4 ++-- ghc-lib-gen/src/Ghclibgen.hs | 12 ++---------- 3 files changed, 6 insertions(+), 14 deletions(-) rename .github/workflows/{ghc-lib-ghc-HEAD-ghc-9.10.1.yml => ghc-lib-ghc-HEAD-ghc-9.12.1.yml} (96%) rename .github/workflows/{ghc-lib-ghc-master-ghc-9.10.1.yml => ghc-lib-ghc-master-ghc-9.12.1.yml} (94%) diff --git a/.github/workflows/ghc-lib-ghc-HEAD-ghc-9.10.1.yml b/.github/workflows/ghc-lib-ghc-HEAD-ghc-9.12.1.yml similarity index 96% rename from .github/workflows/ghc-lib-ghc-HEAD-ghc-9.10.1.yml rename to .github/workflows/ghc-lib-ghc-HEAD-ghc-9.12.1.yml index 976a0f65..fb024a9e 100644 --- a/.github/workflows/ghc-lib-ghc-HEAD-ghc-9.10.1.yml +++ b/.github/workflows/ghc-lib-ghc-HEAD-ghc-9.12.1.yml @@ -1,4 +1,4 @@ -name: Build +name: Build (9.12.1) on: schedule: # run on master... - cron: '0 0 * * *' # .... once a day at midnight @@ -15,7 +15,7 @@ jobs: - uses: haskell-actions/setup@v2 id: setup-haskell with: - ghc-version: 9.10.1 + ghc-version: 9.12.1 cabal-version: 'latest' - name: Install build tools (macOS) run: brew install automake diff --git a/.github/workflows/ghc-lib-ghc-master-ghc-9.10.1.yml b/.github/workflows/ghc-lib-ghc-master-ghc-9.12.1.yml similarity index 94% rename from .github/workflows/ghc-lib-ghc-master-ghc-9.10.1.yml rename to .github/workflows/ghc-lib-ghc-master-ghc-9.12.1.yml index e8031c28..cb78bd3d 100644 --- a/.github/workflows/ghc-lib-ghc-master-ghc-9.10.1.yml +++ b/.github/workflows/ghc-lib-ghc-master-ghc-9.12.1.yml @@ -1,4 +1,4 @@ -name: ghc-lib-ghc-master-ghc-9.10.1 +name: ghc-lib-ghc-master-ghc-9.12.1 on: push: pull_request: @@ -15,7 +15,7 @@ jobs: - uses: haskell-actions/setup@v2 id: setup-haskell with: - ghc-version: 9.10.1 + ghc-version: 9.12.1 cabal-version: 'latest' - name: Install build tools (macOS) run: brew install automake diff --git a/ghc-lib-gen/src/Ghclibgen.hs b/ghc-lib-gen/src/Ghclibgen.hs index c16884dc..a898734f 100644 --- a/ghc-lib-gen/src/Ghclibgen.hs +++ b/ghc-lib-gen/src/Ghclibgen.hs @@ -1567,20 +1567,12 @@ generatePrerequisites ghcFlavor = do =<< readFile' "./mk/get-win32-tarballs.sh" ) - -- When there is a new GHC release it takes time for package bounds - -- to get updated. -#if __GLASGOW_HASKELL__ == 912 - let hadrianExtraCabalFlags = "--allow-newer " -#else - let hadrianExtraCabalFlags = "" -#endif - system_ "bash -c ./boot" system_ "bash -c \"./configure --enable-tarballs-autodownload\"" withCurrentDirectory "hadrian" $ do - system_ $ "cabal build " ++ hadrianExtraCabalFlags ++ "exe:hadrian --ghc-options=-j" + system_ $ "cabal build " ++ "exe:hadrian --ghc-options=-j" system_ . unwords . join $ - [ [ "cabal run " ++ hadrianExtraCabalFlags ++ "exe:hadrian --", + [ [ "cabal run exe:hadrian --", "--directory=..", "--build-root=ghc-lib" ],