From 3163b7935e4a816b1b45ea70ae90055770fc9b39 Mon Sep 17 00:00:00 2001 From: reddevillg Date: Mon, 2 Feb 2026 15:15:07 +0800 Subject: [PATCH] fix: cross arch export is allowed Signed-off-by: reddevillg --- libs/linglong/src/linglong/builder/linglong_builder.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/libs/linglong/src/linglong/builder/linglong_builder.cpp b/libs/linglong/src/linglong/builder/linglong_builder.cpp index 32f6b690f..a88fbdb21 100644 --- a/libs/linglong/src/linglong/builder/linglong_builder.cpp +++ b/libs/linglong/src/linglong/builder/linglong_builder.cpp @@ -1427,12 +1427,6 @@ utils::error::Result Builder::exportUAB(const ExportOption &option, return LINGLONG_ERR(curRef); } - if (!distributedOnly && package::Architecture::currentCPUArchitecture() != curRef->arch) { - return LINGLONG_ERR( - "can't export different architecture UAB in executable mode, if you want to export UAB " - "in distributed mode, please use --ref option instead"); - } - // Retrieves static files from the ll-builder-utils matching the target architecture if // available, including uab-header, uab-loader, ll-box. Fallback to defaults if ll-builder-utils // is not found or fails.