Commit 7783ad1a authored by quasicomputational's avatar quasicomputational

Test and changelog note for check warning on -j.

parent 290b32fc
......@@ -99,6 +99,8 @@ extra-source-files:
tests/ParserTests/regressions/generics-sop.cabal
tests/ParserTests/regressions/generics-sop.expr
tests/ParserTests/regressions/generics-sop.format
tests/ParserTests/regressions/ghc-option-j.cabal
tests/ParserTests/regressions/ghc-option-j.check
tests/ParserTests/regressions/haddock-api-2.18.1-check.cabal
tests/ParserTests/regressions/haddock-api-2.18.1-check.check
tests/ParserTests/regressions/issue-5055.cabal
......
......@@ -25,6 +25,8 @@
non-library components (#5309).
* Reduced warnings generated by hsc2hs and c2hs when `cxx-options` field
is present in a component.
* `cabal check` now warns if `-j` is used in `ghc-options` in a Cabal
file. (#5277)
----
......
......@@ -35,6 +35,7 @@ checkTests = testGroup "regressions"
, checkTest "bad-glob-syntax.cabal"
, checkTest "cc-options-with-optimization.cabal"
, checkTest "cxx-options-with-optimization.cabal"
, checkTest "ghc-option-j.cabal"
]
checkTest :: FilePath -> TestTree
......
cabal-version: 2.2
name: ghc-option-j
version: 0
license: BSD-2-Clause
synopsis: Test
description: Testy test.
maintainer: none
category: none
library
exposed-modules: Foo
ghc-options: -Wall -j -Wno-all
default-language: Haskell2010
executable foo
main-is: Main.hs
ghc-shared-options: -Wall -j2 -Wno-all
default-language: Haskell2010
'ghc-options: -j[N]' can make sense for specific user's setup, but it is not appropriate for a distributed package. Alternatively, if you want to use this, make it conditional based on a Cabal configuration flag (with 'manual: True' and 'default: False') and enable that flag during development.
'ghc-options: -j[N]' can make sense for specific user's setup, but it is not appropriate for a distributed package. Alternatively, if you want to use this, make it conditional based on a Cabal configuration flag (with 'manual: True' and 'default: False') and enable that flag during development.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment