Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Apr 10, 2024
1 parent dec2cf1 commit 5e6d3bf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions xmake/core/package/package.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5e6d3bf

Please sign in to comment.