* [PATCH v4] rust: Use libc++ runtime when using clang with llvm runtime
@ 2022-09-12 7:42 Khem Raj
0 siblings, 0 replies; only message in thread
From: Khem Raj @ 2022-09-12 7:42 UTC (permalink / raw)
To: openembedded-core; +Cc: Khem Raj
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
v3: Use renamed variable RUNTIME -> TC_CXX_RUNTIME
v4: Remove True from d.getVar
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 a33eb00e25..956301023a 100644
--- a/meta/recipes-devtools/rust/rust.inc
+++ b/meta/recipes-devtools/rust/rust.inc
@@ -110,6 +110,8 @@ python do_configure() {
# [llvm]
config.add_section("llvm")
config.set("llvm", "static-libstdcpp", e(False))
+ if "llvm" in (d.getVar('TC_CXX_RUNTIME') or ""):
+ config.set("llvm", "use-libcxx", e(True))
# [rust]
config.add_section("rust")
--
2.37.3
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-09-12 7:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-12 7:42 [PATCH v4] rust: Use libc++ runtime when using clang with llvm runtime Khem Raj
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox