Skip to content

Commit

Permalink
Fix bug in preprocessing test suites and benchmarks
Browse files Browse the repository at this point in the history
Preprocessed files would be written to dist/build instead of
dist/build/my-test-suite/my-test-suite-tmp, causing them not to be
found during compilation.

Fixes #1087.
  • Loading branch information
tibbe committed Oct 30, 2012
1 parent 4e43553 commit dd691fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cabal/Distribution/Simple/PreProcess.hs
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ preprocessComponent pd comp lbi isSrcDist verbosity handlers = case comp of
preProcessComponent bi modules exePath dir = do
let biHandlers = localHandlers bi
sourceDirs = hsSourceDirs bi ++ [ autogenModulesDir lbi ]
sequence_ [ preprocessFile sourceDirs (buildDir lbi) isSrcDist
sequence_ [ preprocessFile sourceDirs dir isSrcDist
(ModuleName.toFilePath modu) verbosity builtinSuffixes
biHandlers
| modu <- modules ]
Expand Down

0 comments on commit dd691fa

Please sign in to comment.