mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 01:22:04 +00:00
Merge pull request #18046 from baibaichen/feature/update_doc
update Mac-OS build documentation
This commit is contained in:
commit
73890fa3a7
@ -35,10 +35,12 @@ $ cd ClickHouse
|
|||||||
|
|
||||||
## Build ClickHouse {#build-clickhouse}
|
## Build ClickHouse {#build-clickhouse}
|
||||||
|
|
||||||
|
> Please note: ClickHouse doesn't support build with native Apple Clang compiler, we need use clang from LLVM.
|
||||||
|
|
||||||
``` bash
|
``` bash
|
||||||
$ mkdir build
|
$ mkdir build
|
||||||
$ cd 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
|
$ ninja
|
||||||
$ cd ..
|
$ cd ..
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user