Commit ce8ffdbb authored by Andrey Mokhov's avatar Andrey Mokhov
Browse files

Simplify extraObjects in src/Rules/Library.hs, see #117.

parent 60950583
......@@ -80,9 +80,5 @@ extraObjects :: PartialTarget -> Action [FilePath]
extraObjects (PartialTarget _ pkg)
| pkg == integerGmp = do
need [integerGmpLibraryH]
objsExist <- doesDirectoryExist integerGmpObjects
putBuild $ "objsExist = " ++ show objsExist
if objsExist
then getDirectoryFiles "" [integerGmpObjects -/- "*.o"]
else return []
getDirectoryFiles "" [integerGmpObjects -/- "*.o"]
| otherwise = return []
Markdown is supported
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