!OqhvaDMJdKYUicLDiE:nixos.org

Nixpkgs Stdenv

222 Members
71 Servers

Load older messages


SenderMessageTime
12 Nov 2024
@reckenrode:matrix.orgRandy Eckenrodehttps://github.com/NixOS/nixpkgs/blob/45d55abd3964711133c2c3bdfdae82e178e9ce55/pkgs/stdenv/darwin/default.nix#L1262-L127822:47:28
@reckenrode:matrix.orgRandy EckenrodeIf clang is correctly setting itself up as a multi-target compiler, should that be overlaid unconditionally?22:47:45
@reckenrode:matrix.orgRandy EckenrodeOr at least the LLVM portion. I don’t know about the Darwin binutils stuff.22:48:01
@reckenrode:matrix.orgRandy Eckenrode

That allows clang.cc to equal the cross one in buildPackages even on Darwin.

22:48:31
13 Nov 2024
@p14:matrix.orgp14
In reply to @reckenrode:matrix.org
If clang is correctly setting itself up as a multi-target compiler, should that be overlaid unconditionally?
Not clear to me. The unwrapped clang can be; but llvmPackages contains wrapped clangs which embed information about the targetPlatform, right?
17:42:07
@reckenrode:matrix.orgRandy Eckenrode
In reply to @p14:matrix.org
Not clear to me. The unwrapped clang can be; but llvmPackages contains wrapped clangs which embed information about the targetPlatform, right?
Assuming the targetPlatform stuff gets dropped, so the same Clang can be used for all cross builds.
18:11:41
@p14:matrix.orgp14
In reply to @reckenrode:matrix.org
Assuming the targetPlatform stuff gets dropped, so the same Clang can be used for all cross builds.
Same llvmPackages.clang.cc but not same llvmPackages.clang.
18:12:48
@reckenrode:matrix.orgRandy Eckenrodehttps://github.com/NixOS/nixpkgs/blob/45d55abd3964711133c2c3bdfdae82e178e9ce55/pkgs/stdenv/darwin/default.nix#L306_L32618:13:11
@reckenrode:matrix.orgRandy Eckenrode * 18:13:42
@reckenrode:matrix.orgRandy Eckenrode @p14:matrix.org: Just double-checked what’s overlaid. See above. Only those packages are overlaid. No wrappers are included in those packages. 18:14:35
@p14:matrix.orgp14Ah cool. That was opaque to me, thanks for explaining!18:15:21
@p14:matrix.orgp14I wish we had a simpler llvmPackages extend expression.18:15:37
@reckenrode:matrix.orgRandy EckenrodeThe Darwin stdenv uses functions to group overrides for the stdenv bootstrap (and provide consistency between stages). That stuff is new with the rework. The wrapper won’t be overlaid because it’s not in those functions.18:16:27
@reckenrode:matrix.orgRandy EckenrodeDarwin bintools can target either Darwin platform, so it probably ought to be overlaid as well (but not the wrapper, of course).18:17:02
@reckenrode:matrix.orgRandy EckenrodeOf course, once the LLVM/Clang fixes are merged.18:17:20
@rosscomputerguy:matrix.orgTristan RossI'll try taking a look at those PR's tonight and tomorrow 19:18:46
@p14:matrix.orgp14I'd appreciate any input on ideas for where I might put an assert / how to implement an assert that clang.cc == pkgsStatic.stdenv.cc.cc == pkgsLLVM.stdenv.cc.cc for https://github.com/NixOS/nixpkgs/pull/355532. I figure I can't just put one in the expression for every eval since we don't want to be evaluating stuff unnecessarily, so presumably it should go into a release test of some sort; but is there anything I can use for precommit?19:56:39
@emilazy:matrix.orgemilyI think it could go into stdenv. that doesn't sound like an expensive check to eval all the time20:03:44
@emilazy:matrix.orgemily though it should probably be .outPath 20:03:50
@emilazy:matrix.orgemilysince comparing derivations is mildly evil I think20:03:56
@p14:matrix.orgp14+1 on outPath; but I'm thinking that evaling some cross derivation surely involves a substantial amount of additional eval you otherwise don't need.20:13:20
@emilazy:matrix.orgemilyoh, sorry, I only skimmed the message and missed the cross package sets20:13:52
@emilazy:matrix.orgemilyyeah that wouldn't be good20:13:54
@emilazy:matrix.orgemily maybe it's a pkgs/test type thing? 20:14:02
@emilazy:matrix.orgemily for hooks, I mean – you could just nix eval 20:14:26
@emilazy:matrix.orgemilyassuming you just mean for your local purposes20:14:31
@p14:matrix.orgp14I mean I'd like to defend the effect of that PR: to ensure we don't actually regress it.20:18:47
@p14:matrix.orgp14Ideally in pre-commit.20:19:06
@emilazy:matrix.orgemilywe don't do pre-commit20:19:41
@emilazy:matrix.orgemilybut you could put it in CI20:19:44

Show newer messages


Back to Room ListRoom Version: 9