diff options
author | Rick van Schijndel <rol3517@gmail.com> | 2021-09-19 21:56:56 +0200 |
---|---|---|
committer | Rick van Schijndel <rol3517@gmail.com> | 2021-10-13 20:44:10 +0200 |
commit | 6a848de95d9e74642efe1488b89a0fc53e8a5256 (patch) | |
tree | 61016d6b6d6705834ae4f10d5036d9e14526fb2b /pkgs/stdenv | |
parent | aac35c22db148c0d4e8f1290e85a386b22266e87 (diff) |
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
Diffstat (limited to 'pkgs/stdenv')
-rw-r--r-- | pkgs/stdenv/generic/make-derivation.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/stdenv/generic/make-derivation.nix b/pkgs/stdenv/generic/make-derivation.nix index 56cfa0c503f89..8fa3063704943 100644 --- a/pkgs/stdenv/generic/make-derivation.nix +++ b/pkgs/stdenv/generic/make-derivation.nix @@ -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) { |