bin/symbols-check: ignore version of platform symbols

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35891>
This commit is contained in:
Eric Engestrom 2025-07-02 18:34:41 +02:00 committed by Marge Bot
parent 5672230c19
commit 3d9b76db8e

View file

@ -73,7 +73,7 @@ def get_symbols_nm(nm, lib):
continue
symbol_name = fields[0]
if platform_name == 'Linux' or platform_name == 'GNU' or platform_name.startswith('GNU/'):
if symbol_name in PLATFORM_SYMBOLS:
if symbol_name.split('@')[0] in PLATFORM_SYMBOLS:
continue
elif platform_name == 'Darwin':
assert symbol_name[0] == '_'