]> git.ipfire.org Git - thirdparty/zstd.git/commit
meson: partial fix for building pzstd on MSVC
authorEli Schwartz <eschwartz@archlinux.org>
Wed, 14 Dec 2022 22:23:24 +0000 (17:23 -0500)
committerNick Terrell <nickrterrell@gmail.com>
Thu, 15 Dec 2022 23:56:06 +0000 (15:56 -0800)
commite0ef09ddba8ebe0cde6786bc3305b43438de0baf
tree6b0246c5ff23679d457d07e4de307b18a3aa30d1
parenta91e7ec175d4f73b54a2d7ebf22d86d262ffb01d
meson: partial fix for building pzstd on MSVC

It uses non-portable compiler options unconditionally. Elsewhere, we
check the compiler ID and only add the right ones, globally. Do the same
here.

NDEBUG can actually be handled by a core option, so while we are moving
things around, do so.

Unfortunately, this doesn't fix things entirely. The remaining issue is
not Meson's issue though -- MSVC simply does not like this source code
and somehow chokes on innocent code with the inscrutable "syntax error"
and "illegal token".
build/meson/contrib/pzstd/meson.build
build/meson/meson.build