File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Cabal/src/Distribution/Simple Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,7 @@ import Distribution.Utils.NubList
85
85
import Distribution.Utils.Path
86
86
import Distribution.Verbosity (Verbosity )
87
87
import Distribution.Version
88
+ import Distribution.Simple.GHC.Build.Link (hasThreaded )
88
89
89
90
import Control.Arrow ((***) )
90
91
import Control.Monad (msum )
@@ -1770,7 +1771,7 @@ getRPaths _ _ = return mempty
1770
1771
popThreadedFlag :: BuildInfo -> (BuildInfo , Bool )
1771
1772
popThreadedFlag bi =
1772
1773
( bi{options = filterHcOptions (/= " -threaded" ) (options bi)}
1773
- , hasThreaded (options bi)
1774
+ , hasThreaded bi
1774
1775
)
1775
1776
where
1776
1777
filterHcOptions
@@ -1780,9 +1781,6 @@ popThreadedFlag bi =
1780
1781
filterHcOptions p (PerCompilerFlavor ghc ghcjs) =
1781
1782
PerCompilerFlavor (filter p ghc) ghcjs
1782
1783
1783
- hasThreaded :: PerCompilerFlavor [String ] -> Bool
1784
- hasThreaded (PerCompilerFlavor ghc _) = " -threaded" `elem` ghc
1785
-
1786
1784
-- | Extracts a String representing a hash of the ABI of a built
1787
1785
-- library. It can fail if the library has not yet been built.
1788
1786
libAbiHash
You can’t perform that action at this time.
0 commit comments