summaryrefslogtreecommitdiffstats
path: root/config/toolchain/clang.cmake
blob: 5e3b13abe223f98dd6f11ffd275a943d2df9033d (plain)
1
2
3
4
5
6
7
8
9
10
11
# Uncomment the following to use cross-compiling
#set(CMAKE_SYSTEM_NAME Linux)

set(CMAKE_COMPILER_VENDOR "clang")

set(CMAKE_C_COMPILER clang)
set(CMAKE_CXX_COMPILER clang++)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

# the following is used if cross-compiling
set(CMAKE_CROSSCOMPILING_EMULATOR "")