From abc41e4d2d8bf65d9793cc609d6f77c76e206b8a Mon Sep 17 00:00:00 2001 From: Tasos Sahanidis Date: Wed, 20 Mar 2024 16:12:10 +0200 Subject: extra/rust: Use ld.gold for LLVM --- extra/rust/PKGBUILD | 3 +-- extra/rust/config.toml.patch | 9 +++++---- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'extra/rust') diff --git a/extra/rust/PKGBUILD b/extra/rust/PKGBUILD index 3c05af70..df5cf3a0 100644 --- a/extra/rust/PKGBUILD +++ b/extra/rust/PKGBUILD @@ -43,8 +43,7 @@ eval "$( /ln.*i686-unknown-linux-gnu.*/d /_pick.*dest-i686.*/d s/x86_64-unknown-linux-musl/i686-unknown-linux-musl/ - ' | \ - sed '3i export LDFLAGS="${LDFLAGS} -Wl,--reduce-memory-overheads"' + ' )" eval "$( diff --git a/extra/rust/config.toml.patch b/extra/rust/config.toml.patch index 7072338a..43575b80 100644 --- a/extra/rust/config.toml.patch +++ b/extra/rust/config.toml.patch @@ -1,10 +1,11 @@ --- a/config.toml 2024-03-12 15:14:24.314876558 +0000 -+++ b/config.toml 2024-03-12 15:19:45.471512723 +0000 -@@ -3,14 +3,14 @@ ++++ b/config.toml 2024-03-20 14:09:23.793371221 +0000 +@@ -3,14 +3,15 @@ [llvm] link-shared = true +link-jobs = 1 ++use-linker = "/usr/sbin/ld.gold" [build] target = [ @@ -18,7 +19,7 @@ ] cargo = "/usr/bin/cargo" rustc = "/usr/bin/rustc" -@@ -37,7 +37,7 @@ +@@ -37,7 +38,7 @@ prefix = "/usr" [rust] @@ -27,7 +28,7 @@ channel = "stable" description = "Arch Linux :-" rpath = false -@@ -74,7 +74,7 @@ +@@ -74,7 +75,7 @@ ar = "/usr/bin/gcc-ar" ranlib = "/usr/bin/gcc-ranlib" -- cgit v1.2.3-70-g09d2