Skip to content

Commit

Permalink
pkgconfig: don't find packages when cross-compiling
Browse files Browse the repository at this point in the history
  • Loading branch information
SirLynix authored May 1, 2024
1 parent f6cd253 commit 0c63bae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions xmake/modules/package/manager/pkgconfig/find_package.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ function main(name, opt)

-- init options
opt = opt or {}
if is_cross(opt.plat, opt.arch) then
return
end

-- get library info
local libinfo = pkgconfig.libinfo(name, opt)
Expand Down

0 comments on commit 0c63bae

Please sign in to comment.