stdenv: add llvm-config to meson cross file

This is e.g. required to get mesa cross-compiling, but is useful for everyone depending on libllvm
This commit is contained in:
Rick van Schijndel 2021-09-19 21:56:56 +02:00
parent aac35c22db
commit 6a848de95d

View File

@ -305,6 +305,9 @@ else let
cpu_family = '${cpuFamily stdenv.targetPlatform}'
cpu = '${stdenv.targetPlatform.parsed.cpu.name}'
endian = ${if stdenv.targetPlatform.isLittleEndian then "'little'" else "'big'"}
[binaries]
llvm-config = 'llvm-config-native'
'';
in [ "--cross-file=${crossFile}" ] ++ mesonFlags;
} // lib.optionalAttrs (attrs.enableParallelBuilding or false) {