diff options
author | tnn <tnn@pkgsrc.org> | 2022-08-14 14:15:48 +0000 |
---|---|---|
committer | tnn <tnn@pkgsrc.org> | 2022-08-14 14:15:48 +0000 |
commit | a2d21a1c174ac36e0660e7211996c232722aac4b (patch) | |
tree | a8e5830c0e0537c04cc044d379d75d494e7fe416 | |
parent | ae5c377fea56ad8e6187ec3b1d535076acccb259 (diff) | |
download | pkgsrc-a2d21a1c174ac36e0660e7211996c232722aac4b.tar.gz |
libcxx: pull in compiler.mk for CC_VERSION
-rw-r--r-- | lang/libcxx/Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lang/libcxx/Makefile b/lang/libcxx/Makefile index 70dab8f2e65..3cd3431f908 100644 --- a/lang/libcxx/Makefile +++ b/lang/libcxx/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.14 2022/08/14 13:52:26 tnn Exp $ +# $NetBSD: Makefile,v 1.15 2022/08/14 14:15:48 tnn Exp $ .include "../../lang/llvm/version.mk" PKGREVISION= 1 @@ -47,6 +47,8 @@ CMAKE_ARGS+= -DLIBCXX_ENABLE_ABI_LINKER_SCRIPT=OFF # avoid conflict with stddef.h CXXFLAGS.NetBSD+= -D__DEFINED_max_align_t=1 +.include "../../mk/compiler.mk" + .if !empty(CC_VERSION:Mgcc-[0-9].*) || !empty(CC_VERSION:Mgcc-10.*) # Avoid GCC < 11 error https://github.com/llvm/llvm-project/issues/54018 CXXFLAGS+= -std=c++17 -D_LIBCPP_STD_VER=17 |