tools/virtio: fix build break for aarch64
authorPeng Fan <peng.fan@nxp.com>
Thu, 23 Mar 2023 04:00:24 +0000 (12:00 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 27 Jun 2023 14:47:08 +0000 (10:47 -0400)
commit77b894f220cbd04301b3d941df8247106e67f8e4
tree6683924d9769258a5dfe82bb656a517e3bd7b093
parentfe37efba475375caa2dbc71cb06f53f7086277ef
tools/virtio: fix build break for aarch64

"-mfunction-return=thunk -mindirect-branch-register" are only valid
for x86. So introduce compiler operation check to avoid such issues

Fixes: 0d0ed4006127 ("tools/virtio: enable to build with retpoline")
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Message-Id: <20230323040024.3809108-1-peng.fan@oss.nxp.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
tools/virtio/Makefile