Module: Mesa
Branch: master
Commit: f51ce21e4e0bf7efabe58afb4a2cd6b9f98d9505
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=f51ce21e4e0bf7efabe58afb4a2cd6b9f98d9505

Author: Eric Anholt <[email protected]>
Date:   Wed Sep  9 16:43:02 2020 -0700

meson: Drop adding -Wl,--gc-sections to project c/cpp arguments.

We already have the targets we care about doing this using
ld_args_gc_sections, and by adding it to project arguments we caused
warnings spam in the android clang build about the compile stage not using
the argument.

Reviewed-by: Kristian H. Kristensen <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6700>

---

 meson.build | 1 -
 1 file changed, 1 deletion(-)

diff --git a/meson.build b/meson.build
index 02a69c420c7..cfe02fa6373 100644
--- a/meson.build
+++ b/meson.build
@@ -1819,7 +1819,6 @@ endif
 # drop shared code unused by that specific driver (particularly
 # relevant for Vulkan drivers).
 if cc.has_link_argument('-Wl,--gc-sections')
-  add_project_arguments('-Wl,--gc-sections', language : ['c', 'cpp'])
   foreach a: ['-ffunction-sections', '-fdata-sections']
     if cc.has_argument(a)
       add_project_arguments(a, language : ['c', 'cpp'])

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to