Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
lxd: Setup image and target arch for cross-compilation #1286
To support cross-compilation in LXD containers the image for the host architecture needs to be used, rather than for the target architecture, which would require slow qemu emulation. It's worth noting that host here means the host running LXD which may not be the same as the host running snapcraft eg. snapcraft executed on an armhf machine using an amd64 remote building for arm64.
Note: this is orthogonal to actual support for cross-compilation in individual plugins and only deals with the container setup.
@@ Coverage Diff @@ ## master #1286 +/- ## ========================================== - Coverage 95.27% 95.21% -0.06% ========================================== Files 218 220 +2 Lines 20282 20454 +172 Branches 1616 1631 +15 ========================================== + Hits 19324 19476 +152 - Misses 677 689 +12 - Partials 281 289 +8