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
0983168a
Commit
0983168a
authored
Feb 18, 2016
by
Mikhail Glushenkov
Browse files
Merge pull request #3161 from 23Skidoo/check-ghc-prof-options
D.PD.Check: Also check 'ghc-shared-options'.
parents
dc004d08
b89055bc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Cabal/Distribution/PackageDescription/Check.hs
View file @
0983168a
...
...
@@ -675,6 +675,7 @@ checkGhcOptions pkg =
all_ghc_options
=
concatMap
get_ghc_options
(
allBuildInfo
pkg
)
lib_ghc_options
=
maybe
[]
(
get_ghc_options
.
libBuildInfo
)
(
library
pkg
)
get_ghc_options
bi
=
hcOptions
GHC
bi
++
hcProfOptions
GHC
bi
++
hcSharedOptions
GHC
bi
checkFlags
::
[
String
]
->
PackageCheck
->
Maybe
PackageCheck
checkFlags
flags
=
check
(
any
(`
elem
`
flags
)
all_ghc_options
)
...
...
@@ -1363,6 +1364,7 @@ checkDevelopmentOnlyFlagsBuildInfo bi =
has_Wall
=
"-Wall"
`
elem
`
ghc_options
has_W
=
"-W"
`
elem
`
ghc_options
ghc_options
=
hcOptions
GHC
bi
++
hcProfOptions
GHC
bi
++
hcSharedOptions
GHC
bi
checkFlags
::
[
String
]
->
PackageCheck
->
Maybe
PackageCheck
checkFlags
flags
=
check
(
any
(`
elem
`
flags
)
ghc_options
)
...
...
Cabal/doc/developing-packages.markdown
View file @
0983168a
...
...
@@ -1370,7 +1370,7 @@ values for these fields.
enabled.
Note that as of Cabal-1.24, the default profiling detail level defaults to
`
exported-functions
` for libraries and `
toplevel-func
i
tons
` for
`
exported-functions
` for libraries and `
toplevel-funct
i
ons
` for
executables. For GHC these correspond to the flags `
-fprof-auto-exported
`
and `
-fprof-auto-top
`. Prior to Cabal-1.24 the level defaulted to `
none
`.
These levels can be adjusted by the person building the package with the
...
...
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