Skip to content

Commit

Permalink
databases/clickhouse: Fix build with llvm16
Browse files Browse the repository at this point in the history
Approved by:	portmgr (blanket)
Sponsored by:	The FreeBSD Foundation
  • Loading branch information
5u623l20 committed Aug 8, 2023
1 parent d5d2680 commit 6956bca
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions databases/clickhouse/Makefile
Expand Up @@ -229,14 +229,11 @@ TEST_CMAKE_BOOL= ENABLE_TESTS

.include <bsd.port.options.mk>

.if ${OSVERSION} < 1400000
CC= clang13
CXX= clang++13
USES+= llvm:max=13,build
.else
CC= clang
CXX= clang++
CFLAGS+= -Wno-error=int-conversion
.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
USES+= llvm:max=15
CC= clang${LLVM_VERSION}
CXX= clang++${LLVM_VERSION}
CFLAGS+=-Wno-error=int-conversion
.endif

.if ${OPSYS} == FreeBSD
Expand Down

0 comments on commit 6956bca

Please sign in to comment.