fanquake
commented at 9:30 AM on April 28, 2021:
member
Not only does this seem to be the more correct behaviour when targeting Darwin, but if you use -isysroot, Clangs Darwin driver will infer the deployment target from the SDK and use other SDK info when parsing arguments to the linker. In the case of -platform_version, which is added if the linker is new enough, the version tuple is constructed from the SDKInfo, and SDKInfo, as far as I can tell, only exists when -isysroot has been passed, see parseSDKSettings
As a result, the SDK version field in the LC_BUILD_VERSION command is filled out. i.e when building master:
This, from what I understand, will fix the issue we are having with Qt deciding wether or not to enable features like "Dark mode" on macOS, see #21771, however I have not tested that. Thus this is an alternative to #21782.
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
Sjors
commented at 10:50 AM on April 29, 2021:
member
tACKcf971c9ea0e8637d36a7ab8b7b8804d9b89f1d9a
I built depends on macOS 11.3 Big Sur (XCode 12.5, Intel CPU) with the whole kitchen-sink make MULTIPROCESS=1 DEBUG=1 and then built and ran QT. It seems to work, including switching between dark and light mode.
Also cross-compiled on Linux. otool finds sdk 505.0. There's some UI glitches when toggling between dark and light mode, but I guess that's what https://github.com/bitcoin-core/gui/pull/275 is trying to fix.
(I used the previous push 1f3932e0dc085ef641e03bd08d4a7d7f22794c4d on macOS, and cf971c9 on Linux)
This is a metadata mirror of the GitHub repository
bitcoin/bitcoin.
This site is not affiliated with GitHub.
Content is generated from a GitHub metadata backup.
generated: 2026-05-19 06:53 UTC