diff options
| author | ruki <[email protected]> | 2023-01-04 23:03:03 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-01-04 23:03:03 +0800 |
| commit | c1dcbe82c7f5eadcb167bd152d202cad4afef7a4 (patch) | |
| tree | 735877c4b552c61ac32043dc15f9f95945f8d157 /xmake/core/tool/toolchain.lua | |
| parent | 0ec969792ddf1e9b964c2744f146b53e63f79910 (diff) | |
improve arch for masm32
Diffstat (limited to 'xmake/core/tool/toolchain.lua')
| -rw-r--r-- | xmake/core/tool/toolchain.lua | 14 |
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? |
