Skip to content

Commit

Permalink
Merge pull request #6344 from cabalism/add/build-ghc-x.y.z-6342
Browse files Browse the repository at this point in the history
Build _ with ghc-x.y.z
  • Loading branch information
mpilgrem committed Nov 25, 2023
2 parents 0c11fba + e180ed0 commit 3d0a483
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .stan.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@

# Anti-pattern: Data.ByteString.Char8.pack
[[ignore]]
id = "OBS-STAN-0203-fki0nd-2666:3"
id = "OBS-STAN-0203-fki0nd-2668:3"
# ✦ Description: Usage of 'pack' function that doesn't handle Unicode characters
# ✦ Category: #AntiPattern
# ✦ File: src\Stack\Build\Execute.hs
Expand Down
2 changes: 2 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ Other enhancements:
found. In YAML configuration files, the `notify-if-ghc-untested` and
`notify-if-cabal-untested` keys are introduced, to allow the notification to
be muted if unwanted.
* The compiler version is included in Stack's build message (e.g.
`stack> build (lib + exe + test) with ghc-9.4.7`).

Bug fixes:
* Fix the `Curator` instance of `ToJSON`, as regards `expect-haddock-failure`.
Expand Down
4 changes: 2 additions & 2 deletions doc/GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -981,7 +981,7 @@ stack build :helloworld-test
Building all executables for `helloworld' once. After a successful build of all of them, only specified executables will be rebuilt.
helloworld> configure (lib + exe + test)
Configuring helloworld-0.1.0.0...
helloworld> build (lib + exe + test)
helloworld> build (lib + exe + test) with ghc-x.y.z
Preprocessing library for helloworld-0.1.0.0..
Building library for helloworld-0.1.0.0..
[1 of 2] Compiling Lib
Expand Down Expand Up @@ -1024,7 +1024,7 @@ and command again:
~~~text
stack build :helloworld-test
helloworld-0.1.0.0: unregistering (local file changes: test\Spec.hs)
helloworld> build (lib + test)
helloworld> build (lib + test) with ghc-x.y.z
Preprocessing library for helloworld-0.1.0.0..
Building library for helloworld-0.1.0.0..
Preprocessing test suite 'helloworld-test' for helloworld-0.1.0.0..
Expand Down
4 changes: 3 additions & 1 deletion src/Stack/Build/Execute.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1985,9 +1985,12 @@ singleBuild
\undefined reference errors from the linker, along with \
\other problems."

actualCompiler <- view actualCompilerVersionL
() <- announce
( "build"
<> display (annSuffix executableBuildStatuses)
<> " with "
<> display actualCompiler
)
config <- view configL
extraOpts <- extraBuildOptions wc eeBuildOpts
Expand Down Expand Up @@ -2017,7 +2020,6 @@ singleBuild
else "haddock"

-- For GHC 8.4 and later, provide the --quickjump option.
actualCompiler <- view actualCompilerVersionL
let quickjump =
case actualCompiler of
ACGhc ghcVer
Expand Down

0 comments on commit 3d0a483

Please sign in to comment.