diff options
| author | Yonggang Luo <luoyonggang@gmail.com> | 2023-12-15 17:42:38 +0800 |
|---|---|---|
| committer | Marge Bot <marge-bot@fdo.invalid> | 2025-09-13 08:23:07 +0000 |
| commit | 57d273b55baa1b153359fd9b27d223fe344aaae2 (patch) | |
| tree | 030a500d53689a9e0f590f03f9746b5de1a34471 /meson.build | |
| parent | bd915eeb96d8743131e984a3f5c14d30534ae7dc (diff) | |
meson: Getting symbols-check.py works for mingw
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37289>
Diffstat (limited to 'meson.build')
| -rw-r--r-- | meson.build | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/meson.build b/meson.build index 267625152c0..00d3969a0a5 100644 --- a/meson.build +++ b/meson.build @@ -2224,12 +2224,19 @@ endif pkg = import('pkgconfig') -if host_machine.system() == 'windows' +if host_machine.system() == 'windows' and cc.get_argument_syntax() == 'msvc' prog_dumpbin = find_program('dumpbin', required : false) with_symbols_check = prog_dumpbin.found() and with_tests if with_symbols_check symbols_check_args = ['--dumpbin', prog_dumpbin.full_path()] endif +elif host_machine.system() == 'windows' and cc.get_argument_syntax() != 'msvc' + # mingw + prog_gendef = find_program('gendef', required : false) + with_symbols_check = prog_gendef.found() and with_tests + if with_symbols_check + symbols_check_args = ['--gendef', prog_gendef.full_path()] + endif else prog_nm = find_program('nm') with_symbols_check = prog_nm.found() and with_tests |