File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
pkgs/development/libraries/mesa Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -172,7 +172,13 @@ in stdenv.mkDerivation {
172172 # libspirv2dxil itself is pretty chonky, so relocate it to its own output in
173173 # case anything wants to use it at some point
174174 "spirv2dxil"
175- # tools for the host platform to be used when cross-compiling
175+ ] ++ lib . optionals ( ! needNativeCLC ) [
176+ # tools for the host platform to be used when cross-compiling.
177+ # mesa builds these only when not already built. hence:
178+ # - for a non-cross build (needNativeCLC = false), we do not provide mesa
179+ # with any `*-clc` binaries, so it builds them and installs them.
180+ # - for a cross build (needNativeCLC = true), we provide mesa with `*-clc`
181+ # binaries, so it skips building & installing any new CLC files.
176182 "cross_tools"
177183 ] ;
178184
You can’t perform that action at this time.
0 commit comments