diff options
Diffstat (limited to 'lib/libcxx/Makefile')
-rw-r--r-- | lib/libcxx/Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/libcxx/Makefile b/lib/libcxx/Makefile index 91cb529249b..779f31aa75a 100644 --- a/lib/libcxx/Makefile +++ b/lib/libcxx/Makefile @@ -1,8 +1,13 @@ -# $OpenBSD: Makefile,v 1.5 2017/02/16 02:08:42 jsg Exp $ +# $OpenBSD: Makefile,v 1.6 2017/04/17 15:53:21 kettenis Exp $ .include <bsd.own.mk> -.if ${COMPILER_VERSION:L} == "clang" +.if ${COMPILER_VERSION:L} != "clang" +CC= clang +CXX= clang++ +.endif + +.if ${BUILD_CLANG:L} == "yes" HDRDIR= ${.CURDIR}/include SRCDIR= ${.CURDIR}/src |