-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
flite: fix building with clang + glibc #384700
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
base: master
Are you sure you want to change the base?
Conversation
# https://github.com/NixOS/nixpkgs/issues/384409 | ||
++ lib.optional ( | ||
stdenv.cc.isClang && stdenv.hostPlatform.libc == "glibc" | ||
) ./0001-Remove-defining-const-as-nothing.patch; |
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.
Have you tested on gcc & glibc and clang on macOS? #define const
is probably something we'd avoid.
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.
Does glibc even support macOS? I do agree on the #define const
but it's a patch that's not made the author of this PR and we're "tracking" that patch. Ideally, we'd want to push that concern with the patch with the author of it.
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.
Have you tested on gcc & glibc and clang on macOS?
Nope. I'm honestly not familiar with the security ramifications here, so I wanted to just keep the application of this as limited as possible
If it works globally though, I'd be fine having it
|
Fails because #374950 |
Fixes #384409
See also:
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.