Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] rust-llvm: Compile llvm to use dynamic libraries
@ 2025-03-31 13:30 Richard Purdie
  2025-03-31 16:13 ` [OE-core] " Khem Raj
  0 siblings, 1 reply; 8+ messages in thread
From: Richard Purdie @ 2025-03-31 13:30 UTC (permalink / raw)
  To: openembedded-core

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.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 meta/recipes-devtools/rust/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 b/meta/recipes-devtools/rust/rust-llvm_1.85.1.bb
index 6a4d2957288..566348c617d 100644
--- a/meta/recipes-devtools/rust/rust-llvm_1.85.1.bb
+++ b/meta/recipes-devtools/rust/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 \


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-04-01 14:20 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox