Use clang on macOS. (#403)

This commit is contained in:
Martijn Courteaux
2026-06-27 19:23:55 +02:00
committed by GitHub
parent 64dcc737a0
commit 4a8ed7f7f1

View File

@@ -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.")