From b394487d4f45821a9cebe019c7bf71c48f690113 Mon Sep 17 00:00:00 2001 From: "chang.chen" Date: Sun, 13 Dec 2020 16:10:07 +0800 Subject: [PATCH] update Mac-OS build documentation --- docs/en/development/build-osx.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/en/development/build-osx.md b/docs/en/development/build-osx.md index 7a4387f073b..c3a0a540b6d 100644 --- a/docs/en/development/build-osx.md +++ b/docs/en/development/build-osx.md @@ -35,10 +35,12 @@ $ cd ClickHouse ## Build ClickHouse {#build-clickhouse} +> Please note: ClickHouse doesn't support build with native Apple Clang compiler, we need use clang from LLVM. + ``` bash $ mkdir build $ cd build -$ cmake .. -DCMAKE_CXX_COMPILER=`which clang++` -DCMAKE_C_COMPILER=`which clang` +$ cmake ..-DCMAKE_C_COMPILER=`brew --prefix llvm`/bin/clang -DCMAKE_CXX_COMPILER=`brew --prefix llvm`/bin/clang++ -DCMAKE_PREFIX_PATH=`brew --prefix llvm` $ ninja $ cd .. ```