summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/package/manager/conan/install_package.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/xmake/modules/package/manager/conan/install_package.lua b/xmake/modules/package/manager/conan/install_package.lua
index 5585e2da1..f51c2e1e4 100644
--- a/xmake/modules/package/manager/conan/install_package.lua
+++ b/xmake/modules/package/manager/conan/install_package.lua
@@ -158,6 +158,8 @@ function main(name, opt)
table.insert(argv, "arch=x86_64")
elseif opt.arch == "i386" or opt.arch == "x86" then
table.insert(argv, "arch=x86")
+ elseif opt.plat == "linux" then
+ table.insert(argv, "arch=" .. opt.arch)
else
raise("cannot install package(%s) for arch(%s)!", name, opt.arch)
end