diff options
author | Khem Raj <raj.khem@gmail.com> | 2022-09-11 16:28:44 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-09-12 08:33:56 +0100 |
commit | f212ad190c065509bb9d65ae3f4a619469a90a85 (patch) | |
tree | 721df02aa220d58fa42b91b3e5035084efed943b /meta/recipes-devtools/rust | |
parent | fbc8f3d395711db00cae32d2502588ea9b61b1da (diff) | |
download | poky-f212ad190c065509bb9d65ae3f4a619469a90a85.tar.gz |
rust: Use libc++ runtime when using clang with llvm runtime
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.
(From OE-Core rev: 521872ab2cac092c88446730772cb8c4e22b0cdc)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/rust')
-rw-r--r-- | meta/recipes-devtools/rust/rust.inc | 2 |
1 files changed, 2 insertions, 0 deletions
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() { | |||
110 | # [llvm] | 110 | # [llvm] |
111 | config.add_section("llvm") | 111 | config.add_section("llvm") |
112 | config.set("llvm", "static-libstdcpp", e(False)) | 112 | config.set("llvm", "static-libstdcpp", e(False)) |
113 | if "llvm" in (d.getVar('TC_CXX_RUNTIME') or ""): | ||
114 | config.set("llvm", "use-libcxx", e(True)) | ||
113 | 115 | ||
114 | # [rust] | 116 | # [rust] |
115 | config.add_section("rust") | 117 | config.add_section("rust") |