diff options
| author | ruki <[email protected]> | 2024-04-11 00:54:14 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-04-11 00:54:14 +0800 |
| commit | d6bcf3fb73418c99def14a8e2d0cb08bb75fecee (patch) | |
| tree | 678c246348a2dc3d346e3cc888e59fa63d533456 /xmake/core/package/package.lua | |
| parent | 5e6d3bf36aa4eba8a069e69c2718ad95860d9c47 (diff) | |
fix on_fetch
Diffstat (limited to 'xmake/core/package/package.lua')
| -rw-r--r-- | xmake/core/package/package.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua index 271aaad97..6dcd0f40f 100644 --- a/xmake/core/package/package.lua +++ b/xmake/core/package/package.lua @@ -1730,7 +1730,7 @@ function _instance:_fetch_library(opt) opt = opt or {} local fetchinfo local on_fetch = self:script("fetch") - if on_fetch and not self:is_cross() then + if on_fetch and (not opt.system or (opt.system and not self:is_cross())) then fetchinfo = on_fetch(self, {force = opt.force, system = opt.system, external = opt.external, |
