Disable LTO on non-amd64 builds

Coroutines fail with LTO on non-amd64 architectures, see:

Debian doesn't enable LTO by default yet, but this is likely to happen at some point [1]. For the moment this fixes Debian builds when LTO is manually enabled and builds in downstream distros where LTO is enabled by default (e.g. Ubuntu).

[1] https://lists.debian.org/debian-devel/2022/06/msg00092.html

LP: #1921664

Merge request reports

Loading