From: Khem Raj <raj.khem@gmail.com>
To: openembedded-core@lists.openembedded.org
Cc: Khem Raj <raj.khem@gmail.com>
Subject: [PATCH v2] rust: Use libc++ runtime when using clang with llvm runtime
Date: Thu, 1 Sep 2022 13:32:28 -0700 [thread overview]
Message-ID: <20220901203228.274513-1-raj.khem@gmail.com> (raw)
meta-clang has options when it comes to C++ runtime, default is to use
gnu runtime, other options are llvm runtime and android runtime. This
patch helps when a distro is using llvm runtime for C/C++ runtime. It
informs the rust build system about right C++ runtime to configure for
when such a setting is used.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
v2: Rebase now that 1.63 is in
meta/recipes-devtools/rust/rust.inc | 2 ++
1 file changed, 2 insertions(+)
diff --git a/meta/recipes-devtools/rust/rust.inc b/meta/recipes-devtools/rust/rust.inc
index 284347dedc..3a7b993ee8 100644
--- a/meta/recipes-devtools/rust/rust.inc
+++ b/meta/recipes-devtools/rust/rust.inc
@@ -107,6 +107,8 @@ python do_configure() {
# [llvm]
config.add_section("llvm")
config.set("llvm", "static-libstdcpp", e(False))
+ if "llvm" in (d.getVar('RUNTIME', True) or ""):
+ config.set("llvm", "use-libcxx", e(True))
# [rust]
config.add_section("rust")
--
2.37.3
next reply other threads:[~2022-09-01 20:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-01 20:32 Khem Raj [this message]
2022-09-01 21:56 ` [OE-core] [PATCH v2] rust: Use libc++ runtime when using clang with llvm runtime Richard Purdie
2022-09-01 23:12 ` Khem Raj
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=20220901203228.274513-1-raj.khem@gmail.com \
--to=raj.khem@gmail.com \
--cc=openembedded-core@lists.openembedded.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