-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
haskell-modules/generic-builder.nix: work around libc++abi issue #266172
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -811,5 +811,12 @@ stdenv.mkDerivation ({ | |
// optionalAttrs (args ? dontStrip) { inherit dontStrip; } | ||
// optionalAttrs (postPhases != []) { inherit postPhases; } | ||
// optionalAttrs (stdenv.buildPlatform.libc == "glibc"){ LOCALE_ARCHIVE = "${glibcLocales}/lib/locale/locale-archive"; } | ||
|
||
# Ensure libc++abi is linked even when clang is invoked as just `clang` or `cc`. | ||
# Works around https://github.com/NixOS/nixpkgs/issues/166205. | ||
# This can be dropped once a fix has been committed to cc-wrapper. | ||
// lib.optionalAttrs (stdenv.cc.isClang && stdenv.cc.libcxx != null) { | ||
env.NIX_LDFLAGS = "-l${stdenv.cc.libcxx.cxxabi.libName}"; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This completely overwrites There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good catch. I pushed an update that preserves There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I opened #266878 to preserve |
||
} | ||
) | ||
) |
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.
Has a PR with the proposed fix to
cc-wrapper
been opened?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.
@toonn is working on the fix to cc-wrapper. I don’t believe he’s opened a PR for it yet.