1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 00:11:17 +02:00

configure.ac: check if lzma has MT support, fix deb build/etc.

This commit is contained in:
Will Dietz 2018-02-09 20:57:31 -06:00
parent 960e9c560e
commit 5a082ad15a
2 changed files with 4 additions and 0 deletions

View file

@ -192,6 +192,7 @@ struct XzSink : CompressionSink
XzSink(Sink & nextSink, const bool parallel) : nextSink(nextSink)
{
lzma_ret ret;
#ifdef HAVE_LZMA_MT
if (parallel) {
lzma_mt mt_options = {};
mt_options.flags = 0;
@ -208,6 +209,7 @@ struct XzSink : CompressionSink
ret = lzma_stream_encoder_mt(
&strm, &mt_options);
} else
#endif
ret = lzma_easy_encoder(
&strm, 6, LZMA_CHECK_CRC64);