From: Artyom Kunakovsky <artyomkunakovsky@gmail.com>
To: qemu-devel@nongnu.org
Cc: Artyom Kunakovsky <artyomkunakovsky@gmail.com>
Subject: [PATCH v2] meson.build: add -mcx16 flag for x86_64 host
Date: Thu, 23 May 2024 08:11:18 +0300 [thread overview]
Message-ID: <20240523051118.29367-1-artyomkunakovsky@gmail.com> (raw)
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
next reply other threads:[~2024-05-23 5:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-23 5:11 Artyom Kunakovsky [this message]
2024-05-23 8:45 ` [PATCH v2] meson.build: add -mcx16 flag for x86_64 host Daniel P. Berrangé
2024-05-24 7:15 ` Paolo Bonzini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240523051118.29367-1-artyomkunakovsky@gmail.com \
--to=artyomkunakovsky@gmail.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).