From: Randy MacLeod <randy.macleod@windriver.com>
To: raj.khem@gmail.com, richard.purdie@linuxfoundation.org,
"Kokkonda, Sundeep" <Sundeep.Kokkonda@windriver.com>,
"Shinde, Yash" <yash.shinde@windriver.com>,
Deepesh Varatharajan <Deepesh.Varatharajan@windriver.com>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [OE-core] [PATCH] rust-llvm: Compile llvm to use dynamic libraries
Date: Mon, 31 Mar 2025 15:08:22 -0400 [thread overview]
Message-ID: <9fe3cc25-c6fc-410a-b819-58e1e1db818e@windriver.com> (raw)
In-Reply-To: <CAMKF1sr8AqkmjQca6fYe90oOU3h=++A2=7RpaWkRFEuS38oyHg@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2822 bytes --]
On 2025-03-31 12:13 p.m., Khem Raj via lists.openembedded.org wrote:
>
>
> On Mon, Mar 31, 2025 at 6:30 AM Richard Purdie via
> lists.openembedded.org <http://lists.openembedded.org>
> <richard.purdie=linuxfoundation.org@lists.openembedded.org> wrote:
>
> Our main llvm recipe uses dynamic linking already but rust-llvm
> does not.
> Enabling this significanly reduces the size of llvm-rust to about
> a third
> of what it was, which is a bettter configuration for us leading to
> smaller
> TMPDIR and sstate objects
>
>
> It will slow down the compiler execution and sometimes its could be
> significant as well we have seen this with clang so it would be good
> to have some idea around that least we provide a slow compiler
> compared to other distro infrastructures
We'll get some performance info from the YP AB perf builds.
Sundeep,
Once we see if there's a noticeable difference in those YP AB runs,
we should look into bench-marking the build time for rust and
check for any difference in building Rust in the SDK and maybe even on
target as another benchmark.
This is less urgent than getting the failing and skipped rust tests
enabled but it shouldn't wait too long.
../Randy
>
>
> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
> ---
> meta/recipes-devtools/rust/rust-llvm_1.85.1.bb
> <http://rust-llvm_1.85.1.bb> | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/meta/recipes-devtools/rust/rust-llvm_1.85.1.bb
> <http://rust-llvm_1.85.1.bb>
> b/meta/recipes-devtools/rust/rust-llvm_1.85.1.bb
> <http://rust-llvm_1.85.1.bb>
> index 6a4d2957288..566348c617d 100644
> --- a/meta/recipes-devtools/rust/rust-llvm_1.85.1.bb
> <http://rust-llvm_1.85.1.bb>
> +++ b/meta/recipes-devtools/rust/rust-llvm_1.85.1.bb
> <http://rust-llvm_1.85.1.bb>
> @@ -44,6 +44,8 @@ EXTRA_OECMAKE = " \
> -DLLVM_ENABLE_FFI=OFF \
> -DLLVM_INSTALL_UTILS=ON \
> -DLLVM_BUILD_EXAMPLES=OFF \
> + -DLLVM_BUILD_LLVM_DYLIB=ON \
> + -DLLVM_LINK_LLVM_DYLIB=ON \
> -DLLVM_INCLUDE_EXAMPLES=OFF \
> -DLLVM_BUILD_TESTS=OFF \
> -DLLVM_INCLUDE_TESTS=OFF \
>
>
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#213987):https://lists.openembedded.org/g/openembedded-core/message/213987
> Mute This Topic:https://lists.openembedded.org/mt/112003864/3616765
> Group Owner:openembedded-core+owner@lists.openembedded.org
> Unsubscribe:https://lists.openembedded.org/g/openembedded-core/unsub [randy.macleod@windriver.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
--
# Randy MacLeod
# Wind River Linux
[-- Attachment #2: Type: text/html, Size: 5877 bytes --]
next prev parent reply other threads:[~2025-03-31 19:08 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-31 13:30 [PATCH] rust-llvm: Compile llvm to use dynamic libraries Richard Purdie
2025-03-31 16:13 ` [OE-core] " Khem Raj
2025-03-31 19:08 ` Randy MacLeod [this message]
2025-03-31 20:44 ` Richard Purdie
2025-03-31 21:49 ` Khem Raj
[not found] ` <1831FE10390FE3BE.19875@lists.openembedded.org>
2025-03-31 21:49 ` Richard Purdie
[not found] ` <1832019BE8984F8C.2063@lists.openembedded.org>
2025-04-01 7:34 ` Richard Purdie
2025-04-01 14:19 ` 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=9fe3cc25-c6fc-410a-b819-58e1e1db818e@windriver.com \
--to=randy.macleod@windriver.com \
--cc=Deepesh.Varatharajan@windriver.com \
--cc=Sundeep.Kokkonda@windriver.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=raj.khem@gmail.com \
--cc=richard.purdie@linuxfoundation.org \
--cc=yash.shinde@windriver.com \
/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