qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] meson.build: add -mcx16 flag for x86_64 host
@ 2024-05-23  5:11 Artyom Kunakovsky
  2024-05-23  8:45 ` Daniel P. Berrangé
  0 siblings, 1 reply; 3+ messages in thread
From: Artyom Kunakovsky @ 2024-05-23  5:11 UTC (permalink / raw)
  To: qemu-devel; +Cc: Artyom Kunakovsky

Fix linker error if the project was configured by the './configure --cpu=unknown --target-list=riscv64-softmmu' command

Signed-off-by: Artyom Kunakovsky <artyomkunakovsky@gmail.com>
---
 meson.build | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/meson.build b/meson.build
index a9de71d450..e68fbfc662 100644
--- a/meson.build
+++ b/meson.build
@@ -336,6 +336,12 @@ if host_arch == 'i386' and not cc.links('''
   qemu_common_flags = ['-march=i486'] + qemu_common_flags
 endif
 
+
+if host_arch == 'x86_64'
+  qemu_common_flags = ['-mcx16'] + qemu_common_flags
+endif
+
+
 if get_option('prefer_static')
   qemu_ldflags += get_option('b_pie') ? '-static-pie' : '-static'
 endif
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-05-24  7:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-23  5:11 [PATCH v2] meson.build: add -mcx16 flag for x86_64 host Artyom Kunakovsky
2024-05-23  8:45 ` Daniel P. Berrangé
2024-05-24  7:15   ` Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).