Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
ab5a70fd
Commit
ab5a70fd
authored
Apr 26, 2016
by
Andrey Mokhov
Browse files
Drop workaround a Shake getDirectoryFiles bug.
parent
e5323858
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Rules/Library.hs
View file @
ab5a70fd
...
...
@@ -97,9 +97,5 @@ extraObjects :: Context -> Action [FilePath]
extraObjects
(
Context
_
package
_
)
|
package
==
integerGmp
=
do
orderOnly
[
gmpLibraryH
]
-- TODO: move this dependency elsewhere, #113?
-- FIXME: simplify after Shake's getDirectoryFiles bug is fixed, #168
exists
<-
doesDirectoryExist
gmpObjects
if
exists
then
map
unifyPath
<$>
getDirectoryFiles
""
[
gmpObjects
-/-
"*.o"
]
else
return
[]
map
unifyPath
<$>
getDirectoryFiles
""
[
gmpObjects
-/-
"*.o"
]
|
otherwise
=
return
[]
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment