diff options
author | Ionen Wolkens <ionen@gentoo.org> | 2024-04-12 15:30:00 -0400 |
---|---|---|
committer | Ionen Wolkens <ionen@gentoo.org> | 2024-04-12 15:36:00 -0400 |
commit | caaafbb24b1124c87255ce52747f6a5f45a2651b (patch) | |
tree | 01c0cda47ce035c486ae276f1f24aa59fa0fdf2b /dev-libs | |
parent | dev-libs/leveldb: fix -Werror (diff) | |
download | gentoo-caaafbb24b1124c87255ce52747f6a5f45a2651b.tar.gz gentoo-caaafbb24b1124c87255ce52747f6a5f45a2651b.tar.bz2 gentoo-caaafbb24b1124c87255ce52747f6a5f45a2651b.zip |
dev-libs/ncnn: disable avx512bf16 code path with >=clang-18 for now
clang-18 itself crashes otherwise.
wrt bug #929228, please remember to override this workaround
to reproduce, aka: MYCMAKEARGS="-DNCNN_AVX512BF16=ON"
Bug: https://bugs.gentoo.org/929228
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/ncnn/ncnn-20240102-r1.ebuild | 4 | ||||
-rw-r--r-- | dev-libs/ncnn/ncnn-20240410.ebuild | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/dev-libs/ncnn/ncnn-20240102-r1.ebuild b/dev-libs/ncnn/ncnn-20240102-r1.ebuild index 0a726c51cc3e..3ca6898ed9c5 100644 --- a/dev-libs/ncnn/ncnn-20240102-r1.ebuild +++ b/dev-libs/ncnn/ncnn-20240102-r1.ebuild @@ -60,5 +60,9 @@ src_configure() { -DNCNN_VULKAN=$(usex vulkan) ) + # temporary workaround due to a >=clang-18 regression (bug #929228) + tc-is-clang && [[ $(clang-major-version) -ge 18 ]] && + mycmakeargs+=( -DNCNN_AVX512BF16=no ) + cmake_src_configure } diff --git a/dev-libs/ncnn/ncnn-20240410.ebuild b/dev-libs/ncnn/ncnn-20240410.ebuild index 9e49183c454a..2bb0594c7321 100644 --- a/dev-libs/ncnn/ncnn-20240410.ebuild +++ b/dev-libs/ncnn/ncnn-20240410.ebuild @@ -60,5 +60,9 @@ src_configure() { -DNCNN_VULKAN=$(usex vulkan) ) + # temporary workaround due to a >=clang-18 regression (bug #929228) + tc-is-clang && [[ $(clang-major-version) -ge 18 ]] && + mycmakeargs+=( -DNCNN_AVX512BF16=no ) + cmake_src_configure } |