diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2023-02-09 23:36:35 -0500 |
---|---|---|
committer | Eli Schwartz <eschwartz@archlinux.org> | 2023-02-09 23:51:42 -0500 |
commit | a846fa3352cd6353c50cb6c46e7782110423d646 (patch) | |
tree | 9d0f16fc52113894a3482ad3872932f24f9feba5 /mesonbuild/compilers/cython.py | |
parent | d0b39a6872719756e77523dc60dbce94470ecba8 (diff) | |
download | meson-a846fa3352cd6353c50cb6c46e7782110423d646.zip meson-a846fa3352cd6353c50cb6c46e7782110423d646.tar.gz meson-a846fa3352cd6353c50cb6c46e7782110423d646.tar.bz2 |
respect the machine file binary overrides, even if it doesn't exist
If someone specifies a binary in a machine file, but the resulting
prog.found() is false because it doesn't actually exist on disk, then
the user was probably trying to disable finding that program. But
find_program() currently doesn't distinguish between a machine file
lookup returning a not-found program, and returning a dummy program
because there's no entry at all.
Explicitly check for a dummy program, rather than checking if the
program was found, before deciding whether to discard the lookup results
and continue trying other program lookup methods.
Diffstat (limited to 'mesonbuild/compilers/cython.py')
0 files changed, 0 insertions, 0 deletions