!OqhvaDMJdKYUicLDiE:nixos.org

Nixpkgs Stdenv

230 Members
75 Servers

Load older messages


SenderMessageTime
15 Nov 2024
@emilazy:matrix.orgemilyhm this looks different09:05:40
@emilazy:matrix.orgemilywell09:05:46
@p14:matrix.orgp14Might be some legacy here 😅09:05:58
@emilazy:matrix.orgemilyI guess it's similar in effect09:05:59
@emilazy:matrix.orgemilyyeah…09:06:06
@emilazy:matrix.orgemilyI mean how about we just move it to the wrapper?09:06:18
@emilazy:matrix.orgemilyit's still not the Right Thing IMO, but it causes a lot less damage in the wrapper09:06:35
@emilazy:matrix.orgemily FWIW the wrapper has a gross "purity filter" thing that tries to reparse the command line and filter out /usr paths 09:06:56
@emilazy:matrix.orgemilywe have like 5 layers of defence against system paths reaching compilers09:07:07
@emilazy:matrix.orgemilyit's really silly09:07:08
@p14:matrix.orgp14I'm unclear on what should move to the wrapper or how to move it - how do we prevent the compiler from adding doing something internally?09:07:39
@p14:matrix.orgp14 * I'm unclear on what should move to the wrapper or how to move it - how do we prevent the compiler from adding paths internally?09:07:46
@emilazy:matrix.orgemily our current patch literally just hacks up the command line parser to forcibly insert -nostdlibinc 09:07:58
@emilazy:matrix.orgemily we could just … pass -nostdlibinc in the wrapper (with the Darwin exception) 09:08:07
@emilazy:matrix.orgemilythat's not A Solution, but it accomplishes the same behaviour as currently for wrapped compilers without rebuilding Clang09:08:23
@emilazy:matrix.orgemily * that's not A Solution, but it accomplishes the same behaviour as currently for wrapped compilers without rebuilding Clang for different targets09:08:28
@emilazy:matrix.orgemilyand, yeah, it changes unwrapped compiler behaviour. but it changes it to be more normal and more upstream and I think that's good?09:08:48
@p14:matrix.orgp14Oh. Right. Brain was in the wrong mode. I now comprehend the silliness of the patch.09:09:22
@p14:matrix.orgp14At least ISTM that it can move to the wrapper and I follow your rationale for it.09:09:49
@emilazy:matrix.orgemilyyeah so when I investigated this last I think I just misinterpreted that bug you linked as talking about an unwrapped compiler09:10:05
@emilazy:matrix.orgemily seeing how ancient these patches are, I now believe that the reason it's applied to the unwrapped compiler is "shrug" 09:10:24
@p14:matrix.orgp14I could believe that.09:10:36
@emilazy:matrix.orgemily I do think we should find a way of solving this libc++ issue that isn't -nostdlibinc, but if we move it to the wrapper the pressure is reduced 09:11:05
@emilazy:matrix.orgemilyand we get a fully target-independent Clang :)09:11:21
@p14:matrix.orgp14Yeah, and it's easier to develop since it won't require rebuilding clang.09:11:24
@p14:matrix.orgp14(When someone does get around to it)09:11:34
@emilazy:matrix.orgemilywell, wrapper changes aren't much kinder 😅09:11:37
@emilazy:matrix.orgemilythough you can at least override the wrappers for specific derivations09:11:43
@p14:matrix.orgp14Yup09:11:48
@emilazy:matrix.orgemilyyou Linux people don't know how good you have it – changing LLVM doesn't even restart the entire bootstrap09:11:58

Show newer messages


Back to Room ListRoom Version: 9