Skip to content
GitLab
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
aaead2a5
Commit
aaead2a5
authored
May 20, 2016
by
Andrey Mokhov
Browse files
Pass GMP objects to Ld explicitly
See
#241
.
parent
ba108c01
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Rules/Library.hs
View file @
aaead2a5
...
...
@@ -67,13 +67,12 @@ buildPackageGhciLibrary context@Context {..} = priority 2 $ do
cSrcs
<-
cSources
context
hSrcs
<-
hSources
context
eObjs
<-
extraObjects
context
let
cObjs
=
map
(
objFile
context
)
cSrcs
hObjs
=
[
path
-/-
src
<.>
osuf
way
|
src
<-
hSrcs
]
gObjs
=
[
gmpObjects
-/-
"*.o"
|
package
==
integerGmp
]
objs
=
cObjs
++
hObjs
when
(
package
==
integerGmp
)
$
orderOnly
[
gmpLibraryH
]
objs
=
cObjs
++
hObjs
++
eObjs
need
objs
build
$
Target
context
Ld
(
objs
++
gObjs
)
[
obj
]
build
$
Target
context
Ld
objs
[
obj
]
-- TODO: Get rid of code duplication and simplify. See also src2dep.
-- Given a 'Context' and a 'FilePath' to a source file, compute the 'FilePath'
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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