From 4a8ed7f7f1d01dae0970f817cd346d768f95684e Mon Sep 17 00:00:00 2001 From: Martijn Courteaux Date: Sat, 27 Jun 2026 19:23:55 +0200 Subject: [PATCH] Use clang on macOS. (#403) --- scripts/toolchain.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/toolchain.lua b/scripts/toolchain.lua index e88aa76..2cbffea 100644 --- a/scripts/toolchain.lua +++ b/scripts/toolchain.lua @@ -380,6 +380,10 @@ function toolchain(_buildDir, _libDir) elseif "osx-x64" == _OPTIONS["gcc"] or "osx-arm64" == _OPTIONS["gcc"] then + premake.gcc.cc = "clang" + premake.gcc.cxx = "clang++" + premake.gcc.ar = "ar" + if os.is("linux") then if not os.getenv("OSXCROSS") then print("Set OSXCROSS environment variable.")