Merge pull request #236688 from emhamm/mesa-fix-build-without-valgrind

mesa: fix build without valgrind
This commit is contained in:
Jörg Thalheim 2023-06-13 06:34:36 +01:00 committed by GitHub
commit 65e6fb7c5f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -210,6 +210,8 @@ self = stdenv.mkDerivation {
# Rusticl, new OpenCL frontend
"-Dgallium-rusticl=true" "-Drust_std=2021"
"-Dclang-libdir=${llvmPackages.clang-unwrapped.lib}/lib"
] ++ lib.optionals (!withValgrind) [
"-Dvalgrind=disabled"
] ++ lib.optional enablePatentEncumberedCodecs
"-Dvideo-codecs=h264dec,h264enc,h265dec,h265enc,vc1dec"
++ lib.optional (vulkanLayers != []) "-D vulkan-layers=${builtins.concatStringsSep "," vulkanLayers}";