mirror of
https://github.com/bkaradzic/bx.git
synced 2026-09-13 13:58:19 +00:00
Use clang on macOS. (#403)
This commit is contained in:
committed by
GitHub
parent
64dcc737a0
commit
4a8ed7f7f1
@@ -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.")
|
||||
|
||||
Reference in New Issue
Block a user