From 75a2bc862eae7ed95ddee16e4271b773c95aeb65 Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 8 Dec 2015 11:21:18 +0800 Subject: add swift compiler --- xmake/scripts/platform/iphoneos/iphoneos.lua | 1 + xmake/scripts/platform/iphoneos/prober.lua | 1 + 2 files changed, 2 insertions(+) (limited to 'xmake/scripts/platform/iphoneos') diff --git a/xmake/scripts/platform/iphoneos/iphoneos.lua b/xmake/scripts/platform/iphoneos/iphoneos.lua index ff9ddfdc0..282d3fe52 100644 --- a/xmake/scripts/platform/iphoneos/iphoneos.lua +++ b/xmake/scripts/platform/iphoneos/iphoneos.lua @@ -57,6 +57,7 @@ function iphoneos.make(configs) configs.tools.ar = config.get("ar") configs.tools.sh = config.get("sh") configs.tools.ex = config.get("ar") + configs.tools.sc = config.get("sc") configs.tools.lipo = config.get("lipo") -- init flags for architecture diff --git a/xmake/scripts/platform/iphoneos/prober.lua b/xmake/scripts/platform/iphoneos/prober.lua index ae17a74c9..ac2e45838 100644 --- a/xmake/scripts/platform/iphoneos/prober.lua +++ b/xmake/scripts/platform/iphoneos/prober.lua @@ -239,6 +239,7 @@ function prober._probe_toolchains(configs) if not prober._probe_toolpath(configs, "ld", "xcrun -sdk iphoneos ", "clang++", "the linker") then return false end if not prober._probe_toolpath(configs, "ar", "xcrun -sdk iphoneos ", "ar", "the static library linker") then return false end if not prober._probe_toolpath(configs, "sh", "xcrun -sdk iphoneos ", "clang++", "the shared library linker") then return false end + if not prober._probe_toolpath(configs, "sc", "xcrun -sdk iphoneos ", "swiftc", "the swift compiler") then return false end if not prober._probe_toolpath(configs, "lipo", "xcrun -sdk iphoneos ", "lipo", "the universal files creater") then return false end return true end -- cgit v1.3.1