1
0
mirror of https://git.freebsd.org/ports.git synced 2026-06-02 11:08:52 +00:00

games/cataclysm-dda: Unbreak on 16-CURRENT with Clang 21

- Add workaround for strict flow analysis introduced in LLVM 21.1.8
- Limit CXXFLAGS to FreeBSD >= 1600017 to preserve build integrity on older versions
- Fixes "function could be declared with attribute 'noreturn'" errors [1]

[1] https://github.com/llvm/llvm-project/issues/154493
This commit is contained in:
Nuno Teixeira
2026-05-05 23:45:53 +01:00
parent 2a5052eb0f
commit b1586e2161
+10 -1
View File
@@ -67,4 +67,13 @@ post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
.include <bsd.port.pre.mk>
# Clang 21.1.8 introduced stricter flow analysis on 16-CURRENT (2026-04-25)
# This workaround prevents build failure in math_parser.cpp and others.
# Ref: https://github.com/llvm/llvm-project/issues/154493
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1600017
CXXFLAGS+= -Wno-error=missing-noreturn -Wno-error=deprecated-declarations
.endif
.include <bsd.port.post.mk>