-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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: Limit usage of --extra-framework-dirs on Darwin for compat #41084
Conversation
240248c
to
2e70a75
Compare
Best to just unbreak Darwin now. We can improve the condition later. |
Yeah. |
Wait what 😮. This condition makes completely no sense to me, can you, please, elaborate? 😕 This appears to be a macOS-only thing, so why is it |
I guess I just don’t understand what was the original issue. |
@kirelagin This is specifically for cross compiling, the flags where added for linux->darwin and this fixes native darwin. |
Why not |
Do you mean |
Again, the problem probably is that I do not understand the original issue. How stopping to include frameworks in certain cases can help with a cross-compilation to Darwin, when Darwin is exactly where these frameworks are needed? I see how this could fix Darwin -> Linux compilation if |
@kirelagin Yes the condition is weird AF. I was gonna make it unconditional with the understanding that it would have no effect on Linux anyways. But then it failed with the Canal that came with GHC 8 on Darwin for unknown reasons. I think that was Cabal 1.24 and I tried the flag on Linux and it was recognized! So I have no idea what's going on. |
Motivation for this change
I have no idea why this appears to be a Darwin only thing. It would be nice to investigate that.
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)