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/generic-builder] windows always has an active library #43712
[haskell/generic-builder] windows always has an active library #43712
Conversation
This commit is not really correct. The `hasActiveLibrary` check is wrong. We can have an active library even if we do not ask for a static lirbary or dynamic one; we can still have just a set of objet files and archives.
I am sorry, but I don't understand the reason behind this change. I also read the commit message and now I am even more confused than before. Could you please re-state your reasons for making this change to help me understand what you mean by "the check is wrong"? And why is Windows different than other platforms? |
@peti, fair point, this is a rather confusing PR. And I'm not even happy with it. Here's the underlying issue: nixpkgs assumes that there is a library if it's either dynamic, or static, or profiling; and it's a library to begin with. This however is not correct. You can have a library that is neither The underlying issue is that |
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'll just trust your judgement going forward with this. Please do whatever you think is best. :-)
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 think this is an okay thing for now. Especially if it gets us closer to ghc/mingw support.
To be fair, I think the correct solution is to get rid of the
|
target |
Drop `hasActiveLibrary` altogether. The condition is wrong, `isLibrary` is the correct one. We can have non-static, non-shared libraries as well.
@domenkozar alright :-) |
I didn't look at this carefully, but I'm going to merge it based on all the approval it has. Let's see how it does on Hydra! |
Motivation for this change
Broken out of #43559
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)