summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJérôme Leclercq <[email protected]>2024-05-01 15:19:00 +0200
committerGitHub <[email protected]>2024-05-01 15:19:00 +0200
commit0c63bae4814067c5928c571be3b2ed70a8c181b1 (patch)
treecf7a8a22f6f2ecc4a40010137013d6357e03e8a0
parentf6cd253d33ecaa60087e9dd22a5bd92afb31c40f (diff)
pkgconfig: don't find packages when cross-compiling
-rw-r--r--xmake/modules/package/manager/pkgconfig/find_package.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/modules/package/manager/pkgconfig/find_package.lua b/xmake/modules/package/manager/pkgconfig/find_package.lua
index 792f99c7a..811c7b6ea 100644
--- a/xmake/modules/package/manager/pkgconfig/find_package.lua
+++ b/xmake/modules/package/manager/pkgconfig/find_package.lua
@@ -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)