Boost: enable lzma and zstd iostreams (#33998)

This commit is contained in:
iarspider 2022-11-19 12:07:52 +01:00 committed by GitHub
parent 62b1d52a1e
commit 602984460d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -225,6 +225,8 @@ def libs(self):
depends_on("mpi", when="+mpi")
depends_on("bzip2", when="+iostreams")
depends_on("zlib", when="+iostreams")
depends_on("zstd", when="+iostreams")
depends_on("xz", when="+iostreams")
depends_on("py-numpy", when="+numpy", type=("build", "run"))
# Improve the error message when the context-impl variant is conflicting
@ -513,9 +515,13 @@ def determine_b2_options(self, spec, options):
"-s",
"ZLIB_LIBPATH=%s" % spec["zlib"].prefix.lib,
"-s",
"NO_LZMA=1",
"LZMA_INCLUDE=%s" % spec["xz"].prefix.include,
"-s",
"NO_ZSTD=1",
"LZMA_LIBPATH=%s" % spec["xz"].prefix.lib,
"-s",
"ZSTD_INCLUDE=%s" % spec["zstd"].prefix.include,
"-s",
"ZSTD_LIBPATH=%s" % spec["zstd"].prefix.lib,
]
)