Commit efac2de0 authored by Edward Z. Yang's avatar Edward Z. Yang
Browse files

Fix preprocessors to put output in correct directory.


Signed-off-by: default avatarEdward Z. Yang <ezyang@cs.stanford.edu>
parent a89e5482
......@@ -149,7 +149,7 @@ preprocessComponent pd comp lbi clbi isSrcDist verbosity handlers = case comp of
,autogenPackageModulesDir lbi]
setupMessage verbosity "Preprocessing library" (packageId pd)
for_ (map ModuleName.toFilePath $ libModules lib) $
pre dirs (buildDir lbi) (localHandlers bi)
pre dirs (componentBuildDir lbi clbi) (localHandlers bi)
(CExe exe@Executable { buildInfo = bi, exeName = nm }) -> do
let exeDir = buildDir lbi </> nm </> nm ++ "-tmp"
dirs = hsSourceDirs bi ++ [autogenComponentModulesDir lbi clbi
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment