Skip to content

Commit b91ab34

Browse files
reddevillgdengbo11
authored andcommitted
fix: cross arch export is allowed
Signed-off-by: reddevillg <reddevillg@gmail.com>
1 parent 8320352 commit b91ab34

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

libs/linglong/src/linglong/builder/linglong_builder.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1427,12 +1427,6 @@ utils::error::Result<void> Builder::exportUAB(const ExportOption &option,
14271427
return LINGLONG_ERR(curRef);
14281428
}
14291429

1430-
if (!distributedOnly && package::Architecture::currentCPUArchitecture() != curRef->arch) {
1431-
return LINGLONG_ERR(
1432-
"can't export different architecture UAB in executable mode, if you want to export UAB "
1433-
"in distributed mode, please use --ref option instead");
1434-
}
1435-
14361430
// Retrieves static files from the ll-builder-utils matching the target architecture if
14371431
// available, including uab-header, uab-loader, ll-box. Fallback to defaults if ll-builder-utils
14381432
// is not found or fails.

0 commit comments

Comments
 (0)