diff options
| -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 |
