Skip to content

Commit 56f6915

Browse files
committed
Prefer clang in all platforms
1 parent 065a166 commit 56f6915

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

PreLoad.cmake

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,9 @@ execute_process(COMMAND uname -m
6060
COMMAND_ERROR_IS_FATAL ANY
6161
)
6262

63-
# By default, prefer clang on Linux
63+
# We already prefer clang
6464
# But note, that you still may change the compiler with -DCMAKE_C_COMPILER/-DCMAKE_CXX_COMPILER.
65-
if (OS MATCHES "Linux"
66-
AND "$ENV{CC}" STREQUAL ""
65+
if ("$ENV{CC}" STREQUAL ""
6766
AND "$ENV{CXX}" STREQUAL ""
6867
AND NOT DEFINED CMAKE_C_COMPILER
6968
AND NOT DEFINED CMAKE_CXX_COMPILER)

docs/en/development/build-osx.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ To build you must use Homebrew's Clang compiler:
3838
cd ClickHouse
3939
mkdir build
4040
export PATH=$(brew --prefix llvm)/bin:$PATH
41-
cmake -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_C_COMPILER=$(brew --prefix llvm)/bin/clang -DCMAKE_CXX_COMPILER=$(brew --prefix llvm)/bin/clang++ -S . -B build
41+
cmake -S . -B build
4242
cmake --build build
4343
# The resulting binary will be created at: build/programs/clickhouse
4444
```

0 commit comments

Comments
 (0)