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 <hoegsberg@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6700>
This commit is contained in:
Eric Anholt 2020-09-09 16:43:02 -07:00 committed by Marge Bot
parent d5a72319d6
commit f51ce21e4e

View file

@ -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'])