summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorcoco875 <59367621+coco875@users.noreply.github.com>2025-08-06 16:02:32 +0200
committerLywx <kiritodev01@gmail.com>2025-08-06 09:16:54 -0600
commit95e7d360c1b69703aa358d37c6f15767195f86cb (patch)
treea07bc0d5ddbcfc66217f98d635e9092be535db1b /cmake
parentee47ca02120f50daf4fa1656e8369cdcdd576803 (diff)
add other macos compiler
Diffstat (limited to 'cmake')
-rw-r--r--cmake/toolchain/macos-clang-llvm.cmake3
-rw-r--r--cmake/toolchain/macos-clang.cmake0
-rw-r--r--cmake/toolchain/macos-gnu.cmake2
3 files changed, 5 insertions, 0 deletions
diff --git a/cmake/toolchain/macos-clang-llvm.cmake b/cmake/toolchain/macos-clang-llvm.cmake
new file mode 100644
index 0000000..d12b5a4
--- /dev/null
+++ b/cmake/toolchain/macos-clang-llvm.cmake
@@ -0,0 +1,3 @@
+set(CMAKE_C_COMPILER /opt/homebrew/opt/llvm/bin/clang)
+set(CMAKE_CXX_COMPILER /opt/homebrew/opt/llvm/bin/clang++)
+set(CMAKE_LINKER /opt/homebrew/opt/lld/bin/lld-link) \ No newline at end of file
diff --git a/cmake/toolchain/macos-clang.cmake b/cmake/toolchain/macos-clang.cmake
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/cmake/toolchain/macos-clang.cmake
diff --git a/cmake/toolchain/macos-gnu.cmake b/cmake/toolchain/macos-gnu.cmake
new file mode 100644
index 0000000..7a795e2
--- /dev/null
+++ b/cmake/toolchain/macos-gnu.cmake
@@ -0,0 +1,2 @@
+set(CMAKE_C_COMPILER /opt/homebrew/opt/gcc/bin/gcc)
+set(CMAKE_CXX_COMPILER /opt/homebrew/opt/gcc/bin/g++) \ No newline at end of file