summaryrefslogtreecommitdiff
path: root/cmake/Toolchain-Clang.cmake
diff options
context:
space:
mode:
authorinfo@mode42.com <info@mode42.com>2026-08-08 03:54:55 +0000
committerinfo@mode42.com <info@mode42.com>2026-08-08 03:54:55 +0000
commit20cb29c2f8c5c87bc590896854a20b1473ceb358 (patch)
tree2857f41513a56ad41af97b57362639298aa7f033 /cmake/Toolchain-Clang.cmake
#2
Diffstat (limited to 'cmake/Toolchain-Clang.cmake')
-rw-r--r--cmake/Toolchain-Clang.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmake/Toolchain-Clang.cmake b/cmake/Toolchain-Clang.cmake
new file mode 100644
index 0000000..d263d2d
--- /dev/null
+++ b/cmake/Toolchain-Clang.cmake
@@ -0,0 +1,6 @@
+# Optional LLVM/Clang toolchain file.
+#
+# Usage:
+# cmake -B build-clang -DCMAKE_TOOLCHAIN_FILE=cmake/Toolchain-Clang.cmake
+
+set(CMAKE_C_COMPILER clang CACHE FILEPATH "C compiler")
git clone -b <branch> https://cgit.mode42.com/<repo>.git
git clone -b <branch> git://cgit.mode42.com/<repo>.git

info@mode42.com