diff options
| author | ruki <[email protected]> | 2020-11-02 22:47:06 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-11-02 22:47:06 +0800 |
| commit | 209d38f645c58d12351a7637f405a648219dfc26 (patch) | |
| tree | 2172d715e9e9aaaa19970efa0ef6bcdaa1357912 | |
| parent | 591a147b892ee1434014e58ad603ba6bcb3966b3 (diff) | |
fix toolchain
| -rw-r--r-- | xmake/core/tool/toolchain.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/tool/toolchain.lua b/xmake/core/tool/toolchain.lua index 7e8290b83..725d1abd9 100644 --- a/xmake/core/tool/toolchain.lua +++ b/xmake/core/tool/toolchain.lua @@ -221,7 +221,7 @@ end -- on check (builtin) function _instance:_on_check() local on_check = self:info():get("check") - if not on_check and (self:cross() or self:sdkdir()) then + if not on_check and self:standalone() and (self:cross() or self:sdkdir()) then on_check = self.check_cross_toolchain end return on_check @@ -230,7 +230,7 @@ end -- on load (builtin) function _instance:_on_load() local on_load = self:info():get("load") - if not on_load and (self:cross() or self:sdkdir()) then + if not on_load and self:standalone() and (self:cross() or self:sdkdir()) then on_load = self.load_cross_toolchain end return on_load |
