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
6d369421
Commit
6d369421
authored
Jan 04, 2016
by
Moritz Angermann
Browse files
Copy libffi into place
rts needs libffi as libCff in rts/stage1/build. This fixes
#89
parent
c4c7a7f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Rules/Copy.hs
View file @
6d369421
...
...
@@ -21,7 +21,9 @@ copyRules = do
when
(
length
ffiHPaths
/=
1
)
$
putError
$
"copyRules: exactly one ffi.h header expected"
++
"(found: "
++
show
ffiHPaths
++
")."
copyFile
(
takeDirectory
(
head
ffiHPaths
)
-/-
takeFileName
ffih
)
ffih
copyFile
libffiLibrary
(
targetPath
Stage1
rts
-/-
"build"
-/-
"libCffi.a"
)
"inplace/lib/template-hsc.h"
<~
pkgPath
hsc2hs
"inplace/lib/platformConstants"
<~
derivedConstantsPath
...
...
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