On 4/24/25 10:36, Dimitry Andric wrote:
The branch main has been updated by dim:
URL:
https://cgit.FreeBSD.org/src/commit/?id=a34d2231fa38a5e440ecdc94dbca3b3deb5a7f50
commit a34d2231fa38a5e440ecdc94dbca3b3deb5a7f50
Author: Dimitry Andric <d...@freebsd.org>
AuthorDate: 2025-04-24 12:03:38 +0000
Commit: Dimitry Andric <d...@freebsd.org>
CommitDate: 2025-04-24 14:36:40 +0000
Partially revert 6527682ab705 for llvm-based projects
Upstream llvm compiles most of their subprojects with -std=c++17
explicitly, not -std=gnu++17. In gnu++17 mode, both clang and gcc define
the macro 'i386' on i386, which clashes with a namespace identifier in
contrib/llvm-project/llvm/include/llvm/ExecutionEngine/JITLink/i386.h.
Since the default after 6527682ab705 is now CXXSTD=gnu++17, explicitly
set CXXSTD=c++17 for lib/clang, lib/libclang_rt and lib/libomp.
Oops. I had done my testing in base with CXXSTD=c++17, but switched to gnu++17
due to breakage in ports. :(
--
John Baldwin