rusticl: fails to find SPIRV-Tools headers via pkg-config under non-default prefix
Regressed by 299f9497 (missing dep_spirv_tools
?). Affects FreeBSD, other BSDs and maybe even Nix due to using different prefix for each package. To reproduce install SPIRV-Tools outside of /usr
and /usr/local
thus not part of default C compiler search path.
$ meson setup -Dvulkan-drivers= -Dgallium-drivers=iris -Dgallium-rusticl=true /tmp/mesa_build
$ meson compile -C /tmp/mesa_build
[...]
/path/to/mesa/src/gallium/frontends/rusticl/rusticl_llvm_bindings.hpp:4:10: fatal error: 'spirv-tools/linker.hpp' file not found
panicked at main.rs:52:36:
Unable to generate bindings: ClangDiagnostic("/path/to/mesa/src/gallium/frontends/rusticl/rusticl_llvm_bindings.hpp:4:10: fatal error: 'spirv-tools/linker.hpp' file not found\n")
$ pkg-config --modversion SPIRV-Tools
2023.5.1
$ pkg-config --cflags SPIRV-Tools
-I/prefix/include