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
Packages
Cabal
Commits
00b2f07d
Commit
00b2f07d
authored
Nov 25, 2016
by
John Ericson
Browse files
Better document "build-tools" and "build-tool-depends"
parent
9694751a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Cabal/Distribution/Types/BuildInfo.hs
View file @
00b2f07d
...
...
@@ -30,8 +30,23 @@ import Language.Haskell.Extension
-- Consider refactoring into executable and library versions.
data
BuildInfo
=
BuildInfo
{
buildable
::
Bool
,
-- ^ component is buildable here
buildTools
::
[
LegacyExeDependency
],
-- ^ tools needed to build this bit
toolDepends
::
[
ExeDependency
],
-- ^ haskell tools needed to build this bit
-- | Tools needed to build this bit.
--
-- This is a legacy field that "build-tool-depends" larely supersedes.
--
-- Unless use are very sure what you are doing, use the functions in
-- `Distribution.Simple.BuildToolDepends` rather than accessing this
-- field directly.
buildTools
::
[
LegacyExeDependency
],
-- | Haskell tools needed to build this bit
--
-- This field is better than "build-tools" because it allows one to
-- precisely specify an executable in a package.
--
-- Unless use are very sure what you are doing, use the functions in
-- `Distribution.Simple.BuildToolDepends` rather than accessing this
-- field directly.
toolDepends
::
[
ExeDependency
],
cppOptions
::
[
String
],
-- ^ options for pre-processing Haskell code
ccOptions
::
[
String
],
-- ^ options for C compiler
ldOptions
::
[
String
],
-- ^ options for linker
...
...
@@ -180,4 +195,3 @@ lookupHcOptions :: (BuildInfo -> [(CompilerFlavor,[String])])
lookupHcOptions
f
hc
bi
=
[
opt
|
(
hc'
,
opts
)
<-
f
bi
,
hc'
==
hc
,
opt
<-
opts
]
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