From f51ce21e4e0bf7efabe58afb4a2cd6b9f98d9505 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 9 Sep 2020 16:43:02 -0700 Subject: [PATCH] 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 Part-of: --- 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'])