Enable internal downloader for Linux 64 bit release
This commit is contained in:
parent
f46c8bdd6f
commit
6260816ed1
@ -19,7 +19,7 @@ if [ "${OS}" = "LINUX" ] ; then
|
|||||||
if [ "${BIT}" = "32" ] ; then
|
if [ "${BIT}" = "32" ] ; then
|
||||||
ecabal build -w ghc-${GHC_VERSION} --ghc-options='-split-sections -optl-static' -ftui -ftar
|
ecabal build -w ghc-${GHC_VERSION} --ghc-options='-split-sections -optl-static' -ftui -ftar
|
||||||
else
|
else
|
||||||
ecabal build -w ghc-${GHC_VERSION} --ghc-options='-split-sections -optl-static' -ftui
|
ecabal build -w ghc-${GHC_VERSION} --ghc-options='-split-sections -optl-static' -ftui -finternal-downloader
|
||||||
fi
|
fi
|
||||||
elif [ "${OS}" = "FREEBSD" ] ; then
|
elif [ "${OS}" = "FREEBSD" ] ; then
|
||||||
ecabal build -w ghc-${GHC_VERSION} --ghc-options='-split-sections' --constraint="zlib static" -ftui
|
ecabal build -w ghc-${GHC_VERSION} --ghc-options='-split-sections' --constraint="zlib static" -ftui
|
||||||
|
@ -71,6 +71,7 @@ downloadBS' :: (MonadThrow m, MonadIO m)
|
|||||||
(L.ByteString)
|
(L.ByteString)
|
||||||
downloadBS' uri' = do
|
downloadBS' uri' = do
|
||||||
bref <- liftIO $ newIORef (mempty :: Builder)
|
bref <- liftIO $ newIORef (mempty :: Builder)
|
||||||
|
-- TODO: performance
|
||||||
let stepper bs = modifyIORef bref (<> byteString bs)
|
let stepper bs = modifyIORef bref (<> byteString bs)
|
||||||
downloadInternal False
|
downloadInternal False
|
||||||
(T.unpack . decUTF8Safe . serializeURIRef' $ uri')
|
(T.unpack . decUTF8Safe . serializeURIRef' $ uri')
|
||||||
|
Loading…
Reference in New Issue
Block a user