Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
Packages
Cabal
Commits
46d392ad
Commit
46d392ad
authored
Jul 16, 2004
by
md9ms
Browse files
Create pkgConf if it doesn't exist
parent
799b8fcf
Changes
1
Show whitespace changes
Inline
Side-by-side
Distribution/Simple/Build.hs
View file @
46d392ad
...
...
@@ -58,8 +58,9 @@ import Distribution.Simple.Utils (rawSystemExit, setupMessage,
)
import
Control.Monad
(
when
)
import
Control.Monad
(
when
,
unless
)
import
Data.List
(
intersperse
)
import
System.Directory
(
doesFileExist
)
import
System.Environment
(
getEnv
)
import
qualified
Distribution.Simple.GHCPackageConfig
as
GHC
(
localPackageConfig
)
...
...
@@ -102,6 +103,8 @@ buildGHC pref pkg_descr lbi = do
-- first, build the modules
pkgConf
<-
GHC
.
localPackageConfig
pkgConfExists
<-
doesFileExist
pkgConf
unless
pkgConfExists
$
writeFile
pkgConf
"[]
\n
"
let
args
=
[
"-package-conf"
,
pkgConf
]
++
constructGHCCmdLine
pref
pkg_descr
lbi
rawSystemExit
(
compilerPath
(
compiler
lbi
))
args
...
...
Write
Preview
Markdown
is supported
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