Skip to content

Commit

Permalink
Merge pull request #5608 from hasufell/fix-ghci-cpp
Browse files Browse the repository at this point in the history
Fix how cpp-options are passed to ghci wrt #5532
  • Loading branch information
mpilgrem committed Jul 25, 2022
2 parents d0171db + cb20a6b commit b286004
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Stack/Package.hs
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ data BioInput = BioInput
generateBuildInfoOpts :: BioInput -> BuildInfoOpts
generateBuildInfoOpts BioInput {..} =
BuildInfoOpts
{ bioOpts = ghcOpts ++ cppOptions biBuildInfo
{ bioOpts = ghcOpts ++ fmap ("-optP" <>) (cppOptions biBuildInfo)
-- NOTE for future changes: Due to this use of nubOrd (and other uses
-- downstream), these generated options must not rely on multiple
-- argument sequences. For example, ["--main-is", "Foo.hs", "--main-
Expand Down

0 comments on commit b286004

Please sign in to comment.