FreeBSD Bugzilla – Attachment 233101 Details for
Bug 263179
devel/flang-clang: fix build with libc++ 14
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
devel/flang-clang: fix build with libc++ 14
devel__flang-clang-fix-libcxx14-build-1.diff (text/plain), 1.17 KB, created by
Dimitry Andric
on 2022-04-09 15:15:08 UTC
(
hide
)
Description:
devel/flang-clang: fix build with libc++ 14
Filename:
MIME Type:
Creator:
Dimitry Andric
Created:
2022-04-09 15:15:08 UTC
Size:
1.17 KB
patch
obsolete
>commit d64f330fafe3bb1e68bf550f099231c2deb2ed3d >Author: Dimitry Andric <dim@FreeBSD.org> >Date: Sat Apr 9 17:12:07 2022 +0200 > > devel/flang-clang: fix build with libc++ 14 > >diff --git a/devel/flang-clang/Makefile b/devel/flang-clang/Makefile >index 0a6a86565cfe..e2461a4f76f8 100644 >--- a/devel/flang-clang/Makefile >+++ b/devel/flang-clang/Makefile >@@ -41,6 +41,9 @@ CMAKE_INSTALL_PREFIX= ${PREFIX}/flang > CC= ${LOCALBASE}/llvm${LLVM_VER}/bin/clang > CXX= ${LOCALBASE}/llvm${LLVM_VER}/bin/clang++ > >+# Support __builtin_is_constant_evaluated(), for libc++ >= 14 >+CXXFLAGS+= -include ${FILESDIR}/builtin_is_constant_evaluated.h >+ > post-patch: > @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/lib/Driver/ToolChains/FreeBSD.cpp > >diff --git a/devel/flang-clang/files/builtin_is_constant_evaluated.h b/devel/flang-clang/files/builtin_is_constant_evaluated.h >new file mode 100644 >index 000000000000..724481d30d8f >--- /dev/null >+++ b/devel/flang-clang/files/builtin_is_constant_evaluated.h >@@ -0,0 +1,4 @@ >+#ifndef DEFINED___BUILTIN_IS_CONSTANT_EVALUATED >+#define DEFINED___BUILTIN_IS_CONSTANT_EVALUATED >+constexpr bool __builtin_is_constant_evaluated() { return false; } >+#endif
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 263179
: 233101