mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-17 20:52:37 +01:00
Fixed default toolchain for iOS/tvOS.
This commit is contained in:
@@ -170,26 +170,26 @@ function toolchain(_buildDir, _libDir)
|
|||||||
location (path.join(_buildDir, "projects", _ACTION .. "-freebsd"))
|
location (path.join(_buildDir, "projects", _ACTION .. "-freebsd"))
|
||||||
|
|
||||||
elseif "ios-arm" == _OPTIONS["gcc"] then
|
elseif "ios-arm" == _OPTIONS["gcc"] then
|
||||||
premake.gcc.cc = "clang"
|
premake.gcc.cc = "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang"
|
||||||
premake.gcc.cxx = "clang++"
|
premake.gcc.cxx = "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++"
|
||||||
premake.gcc.ar = "ar"
|
premake.gcc.ar = "ar"
|
||||||
location (path.join(_buildDir, "projects", _ACTION .. "-ios-arm"))
|
location (path.join(_buildDir, "projects", _ACTION .. "-ios-arm"))
|
||||||
|
|
||||||
elseif "ios-simulator" == _OPTIONS["gcc"] then
|
elseif "ios-simulator" == _OPTIONS["gcc"] then
|
||||||
premake.gcc.cc = "clang"
|
premake.gcc.cc = "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang"
|
||||||
premake.gcc.cxx = "clang++"
|
premake.gcc.cxx = "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++"
|
||||||
premake.gcc.ar = "ar"
|
premake.gcc.ar = "ar"
|
||||||
location (path.join(_buildDir, "projects", _ACTION .. "-ios-simulator"))
|
location (path.join(_buildDir, "projects", _ACTION .. "-ios-simulator"))
|
||||||
|
|
||||||
elseif "tvos-arm64" == _OPTIONS["gcc"] then
|
elseif "tvos-arm64" == _OPTIONS["gcc"] then
|
||||||
premake.gcc.cc = "clang"
|
premake.gcc.cc = "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang"
|
||||||
premake.gcc.cxx = "clang++"
|
premake.gcc.cxx = "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++"
|
||||||
premake.gcc.ar = "ar"
|
premake.gcc.ar = "ar"
|
||||||
location (path.join(_buildDir, "projects", _ACTION .. "-tvos-arm64"))
|
location (path.join(_buildDir, "projects", _ACTION .. "-tvos-arm64"))
|
||||||
|
|
||||||
elseif "tvos-simulator" == _OPTIONS["gcc"] then
|
elseif "tvos-simulator" == _OPTIONS["gcc"] then
|
||||||
premake.gcc.cc = "clang"
|
premake.gcc.cc = "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang"
|
||||||
premake.gcc.cxx = "clang++"
|
premake.gcc.cxx = "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++"
|
||||||
premake.gcc.ar = "ar"
|
premake.gcc.ar = "ar"
|
||||||
location (path.join(_buildDir, "projects", _ACTION .. "-tvos-simulator"))
|
location (path.join(_buildDir, "projects", _ACTION .. "-tvos-simulator"))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user