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

set (CMAKE_COMPILER_VENDOR "clang")

if(WIN32)
  set (CMAKE_C_COMPILER clang-cl)
  set (CMAKE_CXX_COMPILER clang-cl)
else()
  set (CMAKE_C_COMPILER clang)
  set (CMAKE_CXX_COMPILER clang++)
endif()
set (CMAKE_EXPORT_COMPILE_COMMANDS ON)

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