summaryrefslogtreecommitdiffstats
path: root/config/toolchain/clang.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'config/toolchain/clang.cmake')
-rw-r--r--config/toolchain/clang.cmake11
1 files changed, 11 insertions, 0 deletions
diff --git a/config/toolchain/clang.cmake b/config/toolchain/clang.cmake
new file mode 100644
index 0000000..5e3b13a
--- /dev/null
+++ b/config/toolchain/clang.cmake
@@ -0,0 +1,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 "")