Skip to content

Commit

Permalink
Fix preprocessed files for executables (#1347)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdone committed Dec 16, 2015
1 parent a5cef7d commit 9b2c441
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Stack/Package.hs
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,9 @@ generateBuildInfoOpts sourceMap installedMap mcabalMacros cabalDir distDir omitP
(("-i" <>) . toFilePathNoTrailingSep)
([cabalDir | null (hsSourceDirs b)] <>
mapMaybe toIncludeDir (hsSourceDirs b) <>
[autogenDir distDir,buildDir distDir]) ++
[autogenDir distDir,buildDir distDir] <>
[makeGenDir (buildDir distDir)
| Just makeGenDir <- [fileGenDirFromComponentName componentName]]) ++
["-stubdir=" ++ toFilePathNoTrailingSep (buildDir distDir)]
toIncludeDir "." = Just cabalDir
toIncludeDir x = fmap (cabalDir </>) (parseRelDir x)
Expand Down

0 comments on commit 9b2c441

Please sign in to comment.