Switch to latest LLVM

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

View file

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