You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In cabal GHC_OPTIONS envvar translates to the --ghc-options cabal flag, which enables ghc options for all dependencies. We can have another flag to set the ghc options only on the package being built.
To implement that we can create a temporary cabal.project file in .packcheck dir, copy the original cabal.project to this and add a ghc-options stanza in it with the specified options. Then use this cabal.project for build.
In case of sdist build we anyway create a fresh cabal.project, we can add the ghc-options stanza to it.
The text was updated successfully, but these errors were encountered:
In cabal GHC_OPTIONS envvar translates to the
--ghc-options
cabal flag, which enables ghc options for all dependencies. We can have another flag to set the ghc options only on the package being built.To implement that we can create a temporary cabal.project file in
.packcheck
dir, copy the original cabal.project to this and add aghc-options
stanza in it with the specified options. Then use thiscabal.project
for build.In case of sdist build we anyway create a fresh
cabal.project
, we can add the ghc-options stanza to it.The text was updated successfully, but these errors were encountered: