]> git.proxmox.com Git - mirror_qemu.git/commit - configure
pc-bios/s390-ccw: Allow building with Clang, too
authorThomas Huth <thuth@redhat.com>
Sun, 2 May 2021 11:22:21 +0000 (13:22 +0200)
committerThomas Huth <thuth@redhat.com>
Sun, 9 May 2021 16:50:01 +0000 (18:50 +0200)
commita5b2afd522dde375c38cf94b7c696ffa3faba2fb
treead872ba10b4b653e549869e4770b91d02c418bc1
parentda231910d33084ccf63f07de210b145e0fa31d98
pc-bios/s390-ccw: Allow building with Clang, too

Clang unfortunately does not support generating code for the z900
architecture level and starts with the z10 instead. Thus to be able
to support compiling with Clang, we have to check for the supported
compiler flags. The disadvantage is of course that the bios image
will only run with z10 guest CPUs upwards (which is what most people
use anyway), so just in case let's also emit a warning in that case
(we will continue to ship firmware images that have been pre-built
with GCC in future releases, so this should not impact normal users,
too).

Message-Id: <20210502174836.838816-5-thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
configure
pc-bios/s390-ccw/Makefile