Switch to latest LLVM
This commit is contained in:
parent
2d73fc1292
commit
d525201f83
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue