Enable internal downloader for Linux 64 bit release

This commit is contained in:
Julian Ospald 2020-07-18 03:05:41 +02:00
parent f46c8bdd6f
commit 6260816ed1
No known key found for this signature in database
GPG Key ID: 511B62C09D50CD28
2 changed files with 2 additions and 1 deletions

View File

@ -19,7 +19,7 @@ if [ "${OS}" = "LINUX" ] ; then
if [ "${BIT}" = "32" ] ; then
ecabal build -w ghc-${GHC_VERSION} --ghc-options='-split-sections -optl-static' -ftui -ftar
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
elif [ "${OS}" = "FREEBSD" ] ; then
ecabal build -w ghc-${GHC_VERSION} --ghc-options='-split-sections' --constraint="zlib static" -ftui

View File

@ -71,6 +71,7 @@ downloadBS' :: (MonadThrow m, MonadIO m)
(L.ByteString)
downloadBS' uri' = do
bref <- liftIO $ newIORef (mempty :: Builder)
-- TODO: performance
let stepper bs = modifyIORef bref (<> byteString bs)
downloadInternal False
(T.unpack . decUTF8Safe . serializeURIRef' $ uri')