summaryrefslogtreecommitdiff
path: root/xmake/core/tool/toolchain.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2023-01-04 23:03:03 +0800
committerruki <[email protected]>2023-01-04 23:03:03 +0800
commitc1dcbe82c7f5eadcb167bd152d202cad4afef7a4 (patch)
tree735877c4b552c61ac32043dc15f9f95945f8d157 /xmake/core/tool/toolchain.lua
parent0ec969792ddf1e9b964c2744f146b53e63f79910 (diff)
improve arch for masm32
Diffstat (limited to 'xmake/core/tool/toolchain.lua')
-rw-r--r--xmake/core/tool/toolchain.lua14
1 files changed, 12 insertions, 2 deletions
diff --git a/xmake/core/tool/toolchain.lua b/xmake/core/tool/toolchain.lua
index 0ee62b34e..66321dfa4 100644
--- a/xmake/core/tool/toolchain.lua
+++ b/xmake/core/tool/toolchain.lua
@@ -69,12 +69,22 @@ end
-- get toolchain platform
function _instance:plat()
- return self:config("plat")
+ return self._PLAT or self:config("plat")
+end
+
+-- set toolchain platform
+function _instance:plat_set(plat)
+ self._PLAT = plat
end
-- get toolchain architecture
function _instance:arch()
- return self:config("arch")
+ return self._ARCH or self:config("arch")
+end
+
+-- set toolchain architecture
+function _instance:arch_set(arch)
+ self._ARCH = arch
end
-- the current platform is belong to the given platforms?