Skip to content

Commit 22c4122

Browse files
committed
Invoke AppleClang via system compiler shims
Fixes #171
1 parent 90f6109 commit 22c4122

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cmake/appleclang-toolchain.cmake

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@
1616

1717
include_guard(GLOBAL)
1818

19-
set(CMAKE_C_COMPILER clang)
20-
set(CMAKE_CXX_COMPILER clang++)
19+
# Prevent PATH collision with an LLVM clang installation by using the system
20+
# compiler shims
21+
set(CMAKE_C_COMPILER cc)
22+
set(CMAKE_CXX_COMPILER c++)
2123

2224
if(BEMAN_BUILDSYS_SANITIZER STREQUAL "MaxSan")
2325
set(SANITIZER_FLAGS

0 commit comments

Comments
 (0)