rusticl: add ld_args_gc_sections

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

Signed-off-by: Karol Herbst <git@karolherbst.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23778>
This commit is contained in:
Karol Herbst 2023-06-21 21:26:50 +02:00 committed by Marge Bot
parent ff29016753
commit 72fe01a6be

View file

@ -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 : '@0@.0.0'.format(opencl_version),
install : true,
)