[Bug 280396] Mk/Uses/cmake.mk: Disallow USE_CSTD and USE_CXXSTD

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Dec 31 10:13:23 GMT 2025


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280396

--- Comment #20 from Matthias Andree <mandree at FreeBSD.org> ---
Let's get proper documentation and advice in the PHB first, about the language
standards and about cmake use (and ideally the other bits mentioned here), and
consolidate bits that are spread out elsewhere.

I also wonder what reason a port would have knowing better than upstream what
language version of a compiler to use. We've seen "function declarations
without arguments" - example "void myfunc()" switching in interpretation to
"void myfunc(void)" in C23, and I have come across such issues in C++20/23 too
with code bases that are rooted in C++14 mostly.  

What is the conrete use case for overriding a port's C++ version, and **why**
would we need to do it from the port's Makefile or framework?

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the kde-freebsd mailing list