Module: Mesa
Branch: main
Commit: 72fe01a6be92a32392742eb1ba65992b53175bde
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=72fe01a6be92a32392742eb1ba65992b53175bde

Author: Karol Herbst <[email protected]>
Date:   Wed Jun 21 21:26:50 2023 +0200

rusticl: add ld_args_gc_sections

This drops release file size from 33MB to 31MB on my system.

Signed-off-by: Karol Herbst <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23778>

---

 src/gallium/targets/rusticl/meson.build | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/gallium/targets/rusticl/meson.build 
b/src/gallium/targets/rusticl/meson.build
index 26ba18af02d..4a0149fe9ec 100644
--- a/src/gallium/targets/rusticl/meson.build
+++ b/src/gallium/targets/rusticl/meson.build
@@ -51,7 +51,10 @@ librusticl = shared_library(
     idep_nir,
     idep_vtn,
   ],
-  link_args: ld_args_build_id,
+  link_args : [
+    ld_args_build_id,
+    ld_args_gc_sections,
+  ],
   version : '@[email protected]'.format(opencl_version),
   install : true,
 )

Reply via email to