mirror of
https://gitlab.com/qemu-project/meson.git
synced 2025-07-03 07:02:47 +08:00

It is extremely common to need to know within a given dependency if a given header, symbol, member, function, etc exists that cannot be determined from the version number alone. Without passing dependency objects to the various compiler/linker checks and with many libraries headers/libraries being located in their own subdirs of the standard prefix, the check for the library would not find the header/function/symbol/etc. This commit allows passing dependency objects to the compiler checks so that the test program can be compiled/linked/run with the necessary compilation and/or linking flags for that library.