Skip to content

Commit

Permalink
Fix passing of include dirs to GHCI #1222
Browse files Browse the repository at this point in the history
  • Loading branch information
mgsloan committed Oct 28, 2015
1 parent c102b5b commit 5883193
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Stack/Package.hs
Original file line number Diff line number Diff line change
Expand Up @@ -328,9 +328,12 @@ generateBuildInfoOpts sourceMap installedMap mcabalmacros cabalDir distDir omitP
isGhc _ = False
extOpts = map (("-X" ++) . display) . usedExtensions
srcOpts =
-- This initial "-i" resets the include directories to not
-- include CWD.
"-i" :
map
(("-i" <>) . toFilePath)
(cabalDir :
((if null (hsSourceDirs b) then [cabalDir] else []) <>
map (cabalDir </>) (mapMaybe parseRelDir (hsSourceDirs b)) <>
[autogenDir distDir,buildDir distDir]) ++
["-stubdir=" ++ toFilePath (buildDir distDir)]
Expand Down

0 comments on commit 5883193

Please sign in to comment.