summaryrefslogtreecommitdiff
path: root/xmake/core/platform
diff options
context:
space:
mode:
authorruki <[email protected]>2020-05-16 00:03:19 +0800
committerruki <[email protected]>2020-05-16 00:03:19 +0800
commitc6c71612e034c2e741add2b9deb69be4c93a8388 (patch)
tree0b7d15fffb3bb620ffcb93f45c50f002262874e3 /xmake/core/platform
parent53f9e8e305a0cc51f4021a957cfdbc5c37784b9b (diff)
add xcode toolchain
Diffstat (limited to 'xmake/core/platform')
-rw-r--r--xmake/core/platform/platform.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/xmake/core/platform/platform.lua b/xmake/core/platform/platform.lua
index bf6734373..b6574584e 100644
--- a/xmake/core/platform/platform.lua
+++ b/xmake/core/platform/platform.lua
@@ -103,6 +103,11 @@ function _instance:archs()
return self._INFO:get("archs")
end
+-- get the toolchains
+function _instance:toolchains()
+ return self._INFO:get("toolchains")
+end
+
-- get the platform script
function _instance:script(name)
return self._INFO:get(name)
@@ -175,6 +180,7 @@ function platform._apis()
, "platform.set_hosts"
, "platform.set_archs"
, "platform.set_installdir"
+ , "platform.set_toolchains"
}
, script =
{