mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-02 08:50:24 +01:00
meson: avoid calling nm.full_path() when tool is not found
If tool isn't found, we shouldn't call full_path() on it.
This is the case for Android + meson2hermetic.
Fixes: 2f652e0b36 ("meson: move the generic symbols check arguments to a common variable")
Cc: mesa-stable
Reviewed-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39279>
This commit is contained in:
parent
4baae4c4d4
commit
4bb3b80b8f
1 changed files with 3 additions and 1 deletions
|
|
@ -2316,7 +2316,9 @@ elif host_machine.system() == 'windows' and cc.get_argument_syntax() != 'msvc'
|
|||
else
|
||||
prog_nm = find_program('nm')
|
||||
with_symbols_check = prog_nm.found() and with_tests
|
||||
symbols_check_args = ['--nm', prog_nm.full_path()]
|
||||
if with_symbols_check
|
||||
symbols_check_args = ['--nm', prog_nm.full_path()]
|
||||
endif
|
||||
endif
|
||||
|
||||
# This quirk needs to be applied to sources with functions defined in assembly
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue