cmake: Setup default macOS flags#37015
Conversation
|
Success on aarch64-linux (full log) Attempted: cmake Partial log (click to expand)
|
|
Success on x86_64-linux (full log) Attempted: cmake Partial log (click to expand)
|
|
Does anyone have issues with this? Will merge soon if no issues. |
LnL7
left a comment
There was a problem hiding this comment.
Looks good to me, I can push this to my wip job if this should be tested more extensively before merging to staging.
matthewbauer
left a comment
There was a problem hiding this comment.
Yes a Hydra job would be helpful.
|
@matthewbauer Any thoughts on a list of packages to test for this, building all of nixpkgs on the official hydra is maybe not the best idea given the limited build capacity. |
|
Okay I'll just merge to staging and watch what happens. It shouldn't break anything that wasn't already broken. |
|
I would be surprised if this causes any major issues, if everything looks ok we should probably backport this to 18.03. I've seen a number of build failures that look related to this. |
This was introduced in NixOS#37015, before the migration of Apple SDK frameworks to be included by default. More specifically, it breaks anything looking for `Network.framework` (such as qtbase 6.10) because it will prefer `libnetwork.tbd` over the framework. Fixes NixOS#455059. Supersedes NixOS#455458.
Motivation for this change
This is a collection of new defaults to setup for CMake related to macOS. Many packages are already setting these, but this will just make them the default. If I have time, I can make a treewide commit that removes references to these flags.
This could potentially break many packages, so it should be extensively tested. If someone could setup a Hydra jobset for this, that would be great!
Also related to #36834