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
f248f525
Commit
f248f525
authored
Jun 17, 2004
by
md9ms
Browse files
Make the ghc build look at ~/.ghc-packages
parent
0432902e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Distribution/Simple/Build.hs
View file @
f248f525
...
...
@@ -60,6 +60,7 @@ import Distribution.Simple.Utils (rawSystemExit, setupMessage,
import
Control.Monad
(
when
)
import
Data.List
(
intersperse
,
nub
)
import
System.Environment
(
getEnv
)
#
ifdef
DEBUG
import
HUnit
(
Test
)
...
...
@@ -94,7 +95,9 @@ buildGHC :: FilePath -> PackageDescription -> LocalBuildInfo -> IO ()
buildGHC
pref
pkg_descr
lbi
=
do
-- first, build the modules
let
args
=
constructGHCCmdLine
pref
pkg_descr
lbi
home
<-
getEnv
"HOME"
let
args
=
[
"-package-conf"
,
home
++
"/.ghc-packages"
]
++
constructGHCCmdLine
pref
pkg_descr
lbi
rawSystemExit
(
compilerPath
(
compiler
lbi
))
args
-- build any C sources
...
...
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