Skip to content

Commit b286004

Browse files
authored
Merge pull request #5608 from hasufell/fix-ghci-cpp
Fix how cpp-options are passed to ghci wrt #5532
2 parents d0171db + cb20a6b commit b286004

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Stack/Package.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ data BioInput = BioInput
367367
generateBuildInfoOpts :: BioInput -> BuildInfoOpts
368368
generateBuildInfoOpts BioInput {..} =
369369
BuildInfoOpts
370-
{ bioOpts = ghcOpts ++ cppOptions biBuildInfo
370+
{ bioOpts = ghcOpts ++ fmap ("-optP" <>) (cppOptions biBuildInfo)
371371
-- NOTE for future changes: Due to this use of nubOrd (and other uses
372372
-- downstream), these generated options must not rely on multiple
373373
-- argument sequences. For example, ["--main-is", "Foo.hs", "--main-

0 commit comments

Comments
 (0)