diff options
| author | ruki <[email protected]> | 2024-04-11 00:56:19 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-04-11 00:56:19 +0800 |
| commit | 3871415320ddf8ceeaa3a2851a6b27d8a5fa7e71 (patch) | |
| tree | 90a8ed8bf03591c5dce484a23abefe48e9891171 /xmake/modules/package/manager/system/find_package.lua | |
| parent | 56b62725e6e35fa9265f9f6251dae84dd6933df5 (diff) | |
disable some fetch packages for cross
Diffstat (limited to 'xmake/modules/package/manager/system/find_package.lua')
| -rw-r--r-- | xmake/modules/package/manager/system/find_package.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/xmake/modules/package/manager/system/find_package.lua b/xmake/modules/package/manager/system/find_package.lua index dd1fd099a..9a2a7ea55 100644 --- a/xmake/modules/package/manager/system/find_package.lua +++ b/xmake/modules/package/manager/system/find_package.lua @@ -20,6 +20,7 @@ -- imports import("core.language.language") +import("private.core.base.is_cross") import("lib.detect.check_cxsnippets") -- get package items @@ -57,8 +58,11 @@ end -- function main(name, opt) opt = opt or {} - local configs = opt.configs or {} + if is_cross(opt.plat, opt.arch) then + return + end + local configs = opt.configs or {} local items = _get_package_items() local snippet_configs = {} for _, name in ipairs(items) do |
