summaryrefslogtreecommitdiff
path: root/mesonbuild/compilers
diff options
context:
space:
mode:
authorFlorian "sp1rit"​ <sp1rit@disroot.org>2024-11-16 13:43:48 +0100
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2025-01-13 23:09:31 +0530
commitdfb449d099d6f3066ca646af197bc7af85059a86 (patch)
tree18bb7e2e439b20089191be5920058f09cb7b6196 /mesonbuild/compilers
parent6b99eeb2c99d4af4be2562b25507541bfd842692 (diff)
downloadmeson-dfb449d099d6f3066ca646af197bc7af85059a86.tar.gz
vulkan system dep: determine version on cross builds
Currently, the vulkan system dep detects its vulkan version by building and running: int main() { printf("%i.%i.%i", VK_VERSION_MAJOR(VK_HEADER_VERSION_COMPLETE), VK_VERSION_MINOR(VK_HEADER_VERSION_COMPLETE), VK_VERSION_PATCH(VK_HEADER_VERSION_COMPLETE)); return 0; } this causes cross builds that do not have the possibility of running on the build machine to evaluate the vulkan dependency with an 'Unknown' version. Instead of evaluating beforementioned piece of C code, the new implementation will instead use cc.compute_int to evaluate the three preprocessor macros. This is relativly expensive for cross builds right now but further optimizations can be made. See #13910 for more details.
Diffstat (limited to 'mesonbuild/compilers')
0 files changed, 0 insertions, 0 deletions