Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apologies, what I said in #305876 wasn't quite right;
stdenv.hostPlatform.extensions.librarywill yield.awhen targeting a static platform:nixpkgs/lib/systems/default.nix
Lines 126 to 134 in 65f3d71
This means that
nix-build --arg crossSystem '{ system = "x86_64-freebsd13"; useLLVM = true; isStatic = true; }' -A libcxxrtwould1 yield alibcxxrtthat haslib/libcxxrt.a.Given that the staticlib is relatively small, providing it even when
!hostPlatform.isStaticseems reasonable to me (especially sincelibc++.aisn't gated onisStatic) but I'll defer to @alyssais on this.If we do want
libcxxrtto expose both the shared and static versions of the library I think the above should become something like:Footnotes
currently this fails with an unrelated error while building
libc;pkgsStatic.libcxxrtforx86_64-linuxalso fails becauseldcannot producelib/libcxxrt.so(shared object) withmusl'scrtbeginT.o↩There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this seems slightly overly pedantic to me tho i suppose what i have breaks in the windows case. but this is more work then i care to do so closing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm sorry. I appreciate the work you're doing and did not mean to discourage you.
Agreed that the above isn't an important change; if it's okay with the
libcxxrtpackage maintainer, I'm happy with this PR as is.