summaryrefslogtreecommitdiff
path: root/xmake/core/tool/toolchain.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-05-20 00:30:23 +0800
committerruki <[email protected]>2020-05-19 21:02:23 +0800
commit04493b00d03e87e3c2af7d9f58bb43edb77eb410 (patch)
treeeb0a7b5ecb9369cc1d7b67b8a7c1008492d7e974 /xmake/core/tool/toolchain.lua
parent86598231b463786d3a20bdb267e54f352f3c1b63 (diff)
add cross and llvm toolchains
Diffstat (limited to 'xmake/core/tool/toolchain.lua')
-rw-r--r--xmake/core/tool/toolchain.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/xmake/core/tool/toolchain.lua b/xmake/core/tool/toolchain.lua
index 032445b3d..78da9ea7f 100644
--- a/xmake/core/tool/toolchain.lua
+++ b/xmake/core/tool/toolchain.lua
@@ -100,6 +100,11 @@ function _instance:bindir()
return config.get("bin") or self:get("bindir")
end
+-- get the sdk directory
+function _instance:sdkdir()
+ return config.get("sdk") or self:get("sdkdir")
+end
+
-- do load
function _instance:_load()
if not self._LOADED then
@@ -267,6 +272,7 @@ function toolchain._apis()
values =
{
"toolchain.set_bindir"
+ , "toolchain.set_sdkdir"
}
, keyvalues =
{