FreeBSD Bugzilla – Attachment 231795 Details for
Bug 261932
devel/creduce: Add a crutch to build against libc++ 14
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Add crutch for using libc++ 14 with clang++ 8
devel__creduce-add-crutch-for-libcxx14-1.diff (text/plain), 1.34 KB, created by
Dimitry Andric
on 2022-02-13 14:14:21 UTC
(
hide
)
Description:
Add crutch for using libc++ 14 with clang++ 8
Filename:
MIME Type:
Creator:
Dimitry Andric
Created:
2022-02-13 14:14:21 UTC
Size:
1.34 KB
patch
obsolete
>commit 6a10931340bca9a708fb9fb9285385714bbc3176 >Author: Dimitry Andric <dim@FreeBSD.org> >Date: Sun Feb 13 15:05:12 2022 +0100 > > devel/creduce: add crutch for using libc++ 14 with clang++ 8 > >diff --git a/devel/creduce/Makefile b/devel/creduce/Makefile >index d0cf2295c97f..ec9dfa3a841c 100644 >--- a/devel/creduce/Makefile >+++ b/devel/creduce/Makefile >@@ -26,7 +26,7 @@ CONFIGURE_ENV= LLVM_CONFIG=${LOCALBASE}/bin/llvm-config${LLVM_VER} \ > CXX=${LOCALBASE}/bin/clang++${LLVM_VER} \ > CPP=${LOCALBASE}/bin/clang-cpp${LLVM_VER} > >-USES= autoreconf gmake libtool perl5 >+USES= autoreconf compiler gmake libtool perl5 > > CFLAGS_powerpc64= -mabi=elfv2 > >@@ -36,4 +36,12 @@ CFLAGS_powerpc64= -mabi=elfv2 > LLD_UNSAFE= yes > .endif > >+.include <bsd.port.pre.mk> >+ >+# Detect base system libc++ >= 14 by checking for COMPILER_VERSION. >+# Not really the ideal way, but it should work. >+.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 140 >+CXXFLAGS+= -include ${FILESDIR}/builtin_is_constant_evaluated.h >+.endif >+ > .include <bsd.port.mk> >diff --git a/devel/creduce/files/builtin_is_constant_evaluated.h b/devel/creduce/files/builtin_is_constant_evaluated.h >new file mode 100644 >index 000000000000..2775e8fa1bf3 >--- /dev/null >+++ b/devel/creduce/files/builtin_is_constant_evaluated.h >@@ -0,0 +1 @@ >+constexpr bool __builtin_is_constant_evaluated() { return false; }
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
Flags:
swills
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 261932
: 231795