[haskell/generic-builder] windows always has an active library#43712
[haskell/generic-builder] windows always has an active library#43712ryantm merged 2 commits intoNixOS:haskell-updatesfrom
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 |
peti
left a comment
There was a problem hiding this comment.
I'll just trust your judgement going forward with this. Please do whatever you think is best. :-)
matthewbauer
left a comment
There was a problem hiding this comment.
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
sandboxinnix.confon non-NixOS)nix-shell -p nox --run "nox-review wip"./result/bin/)nix path-info -Sbefore and after)