summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2024-04-11 00:53:34 +0800
committerruki <[email protected]>2024-04-11 00:53:34 +0800
commit5e6d3bf36aa4eba8a069e69c2718ad95860d9c47 (patch)
tree8cea65952311221460a99f45bbcd2ec175eb020a
parentdec2cf143065520452917393ecf28d7479f026c4 (diff)
fix error
-rw-r--r--xmake/core/package/package.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua
index 5d80c5e38..271aaad97 100644
--- a/xmake/core/package/package.lua
+++ b/xmake/core/package/package.lua
@@ -1729,9 +1729,8 @@ end
function _instance:_fetch_library(opt)
opt = opt or {}
local fetchinfo
- local is_cross = self:is_cross()
local on_fetch = self:script("fetch")
- if on_fetch and not is_cross() then
+ if on_fetch and not self:is_cross() then
fetchinfo = on_fetch(self, {force = opt.force,
system = opt.system,
external = opt.external,