!OqhvaDMJdKYUicLDiE:nixos.org

Nixpkgs Stdenv

195 Members
63 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
25 May 2025
@creepinson:matrix.org@creepinson:matrix.org joined the room.22:54:23
26 May 2025
@rosscomputerguy:matrix.orgTristan RossIn case people wish to join in and discuss all together the work on the stdenv & CC improvements, we have a crab.fit to figure out a good time. https://crab.fit/nixpkgs-stdenv-team-meeting-for-refactoring-90631105:14:00
@trofi:matrix.orgtrofi

Split GCC up similar to LLVM to accomplish this

I would suggest getting llvm-only bootstrap on linux first :)

08:32:06
@reckenrode:matrix.orgRandy EckenrodeI can give feedback, but my time is still pretty limited, and what time I do have is focused on Darwin stuff.11:07:06
@reckenrode:matrix.orgRandy Eckenrode One cc thing I do want to do is rewrite Darwin version handling. It currently uses -mmacos-version-min, but Swift wants to do it via triple (e.g., arm64-apple-macosx14.0). I want to align the handling with what Swift wants to do. arm64-apple-darwin would become shorthand for arm64-apple-macosx with the current deployment target. 11:13:24
@reckenrode:matrix.orgRandy Eckenrode (I also think emilyhad ideas for cc.) 11:15:42
@emilazy:matrix.orgemily FWIW, I tried -macosx and it sadly broke every autotools build system. 11:20:32
@emilazy:matrix.orgemily they only recognize -darwin. 11:20:36
@emilazy:matrix.orgemily(not sure why we are doing more calls after everyone else on the team said it's not a good fit…)11:21:01
@emilazy:matrix.orgemilyI also have pretty limited time right now (just moved, still very busy with it). hopefully will have more in a couple weeks11:21:44
@reckenrode:matrix.orgRandy Eckenrode
In reply to @emilazy:matrix.org
FWIW, I tried -macosx and it sadly broke every autotools build system.
Can we use our autotools config hook to teach it macosx?
11:29:49
@reckenrode:matrix.orgRandy EckenrodeLike we do for aarch64-darwin?11:30:05
@emilazy:matrix.orgemilythat only applies to old autotools versions right?11:34:54
@emilazy:matrix.orgemilyI think it would be possible, but I think I would want to upstream support for it to autotools11:35:05
@emilazy:matrix.orgemilybecause if it's just a thing for old versions to backport something upstream is okay with, that's cool11:35:12
@emilazy:matrix.orgemilybut if we're patching every single autotools build in existence forever that's going to suck11:35:23
@emilazy:matrix.orgemily it would have to be applied universally in stdenv until the update percolates through the ecosystem, before we can make it a standalone hook 11:35:38
@emilazy:matrix.orgemily it would be really nice to have arm64-apple-macosx14.x as the triple though, it would let us remove some hacks throughout the tree 11:35:56
@emilazy:matrix.orgemily we'd have to teach the GCC/binutils build about macosx* versions instead of just darwin* I think… or just get LLVM Flang packaged and give up on GCC on Darwin since we're already applying a ten billion line patch by one guy just to get it building… 11:36:41
@emilazy:matrix.orgemily oh I should also say: even Apple and LLVM are inconsistent about whether it should be -macos14.x or -macosx14.x. I forget which one is canonical. 11:37:09
@emilazy:matrix.orgemily I think libc++ passes one and Rust passes another and so on and so forth 11:37:20
@emilazy:matrix.orgemily autotools treats -macos as classic macOS IIRC, or at least -macos9 maybe 11:37:39
@emilazy:matrix.orgemily my suspicion was that -macosx would be more palatable to the non-Apple/LLVM ecosystem, but it does have the drawback that we're standardizing on a name that has been out of date for many years 11:38:05
@reckenrode:matrix.orgRandy Eckenrode Note that the default target would still be <arch>-apple-darwin. The translation would happen in the wrapper when invoking the unwrapped compiler. 11:42:58
@reckenrode:matrix.orgRandy Eckenrode
In reply to @emilazy:matrix.org
that only applies to old autotools versions right?
aarch64-darwin unconditionally includes the hook by default in its stdenv.
11:43:59

Show newer messages


Back to Room ListRoom Version: 9