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
Packages
Cabal
Commits
6b6c8fe6
Commit
6b6c8fe6
authored
Jun 15, 2004
by
bjorn@bringert.net
Browse files
Use -package in buildGHC
parent
f7e575f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Distribution/Simple/Build.hs
View file @
6b6c8fe6
...
...
@@ -50,7 +50,7 @@ module Distribution.Simple.Build (
import
Distribution.Misc
(
Extension
(
..
))
import
Distribution.Setup
(
CompilerFlavor
(
..
),
compilerFlavor
,
compilerPath
)
import
Distribution.Package
(
PackageDescription
(
..
),
showPackageId
)
import
Distribution.Simple.Configure
(
LocalBuildInfo
,
compiler
)
import
Distribution.Simple.Configure
(
LocalBuildInfo
(
..
)
,
compiler
)
import
Distribution.Simple.Utils
(
rawSystemExit
,
setupMessage
,
die
,
rawSystemPathExit
,
split
,
createIfNotExists
,
...
...
@@ -107,7 +107,7 @@ buildGHC pref pkg_descr lbi = do
rawSystemPathExit
"ar"
([
"q"
,
lib
]
++
[
pathJoin
[
pref
,
x
]
|
x
<-
objs
])
constructGHCCmdLine
::
FilePath
->
PackageDescription
->
LocalBuildInfo
->
[
String
]
constructGHCCmdLine
pref
pkg_descr
_
=
constructGHCCmdLine
pref
pkg_descr
lbi
=
[
"--make"
,
"-odir "
++
pref
,
"-hidir "
++
pref
,
"-package-name"
,
showPackageId
(
package
pkg_descr
)
...
...
@@ -115,6 +115,7 @@ constructGHCCmdLine pref pkg_descr _ =
++
extensionsToGHCFlag
(
extensions
pkg_descr
)
++
[
opt
|
(
GHC
,
opts
)
<-
options
pkg_descr
,
opt
<-
opts
]
++
[
"-i"
++
pref
]
++
[
"-package "
++
showPackageId
pkg
|
pkg
<-
packageDeps
lbi
]
++
allModules
pkg_descr
extensionsToGHCFlag
::
[
Extension
]
->
[
String
]
...
...
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