Skip to content

Commit

Permalink
mesa: don't specify spirv2dxil output if it's not built
Browse files Browse the repository at this point in the history
If mesa was overridden to specify a list of gallium drivers that didn't
include d3d12, nix would fail the build for not producing the spirv2dxil
output.
  • Loading branch information
mvnetbiz committed Jan 7, 2025
1 parent ceae23d commit 008be5d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkgs/development/libraries/mesa/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ in stdenv.mkDerivation {

outputs = [
"out" "dev" "drivers" "driversdev" "opencl" "teflon" "osmesa"
] ++ lib.optionals (lib.elem "d3d12" galliumDrivers) [
# the Dozen drivers depend on libspirv2dxil, but link it statically, and
# libspirv2dxil itself is pretty chonky, so relocate it to its own output in
# case anything wants to use it at some point
Expand Down

0 comments on commit 008be5d

Please sign in to comment.