mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-03 15:10:37 +01:00
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:
parent
d5a72319d6
commit
f51ce21e4e
1 changed files with 0 additions and 1 deletions
|
|
@ -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'])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue