Switch to latest LLVM

This commit is contained in:
Mikael 2024-07-24 20:22:34 +02:00
parent 2d73fc1292
commit 130d99ea82

View file

@ -1,7 +1,8 @@
pkgs: stdenv:
let
inherit (pkgs) addAttrsToDerivation overrideCC;
inherit (pkgs.lib) optionalAttrs optionals toList;
inherit (pkgs) addAttrsToDerivation;
inherit (pkgs.llvmPackages_latest) clang;
inherit (stdenv) buildPlatform hostPlatform;
cflagsC = [
@ -50,4 +51,4 @@ in addAttrsToDerivation (base: {
NIX_CFLAGS_LINK = toList base.NIX_CFLAGS_LINK or [ ] ++ cflagsL;
} // optionalAttrs (!base ? env.NIX_LDFLAGS) {
NIX_LDFLAGS = toList base.NIX_LDFLAGS or [ ] ++ ldflags;
}) stdenv
}) (overrideCC stdenv clang)