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.
hebasto approved
hebasto
commented at 5:10 pm on April 28, 2021:
member
ACK1f3932e0dc085ef641e03bd08d4a7d7f22794c4d
nit: Why not being consistent about absence/presence a space after -isysroot? Clang docs suggests the former.
Additionally to my previous tests, tested cross-compiling on Linux Mint 20.1 (x86_64):
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)
fanquake merged this
on May 1, 2021
fanquake closed this
on May 1, 2021
MarcoFalke removed the label
Needs Guix build
on May 1, 2021
MarcoFalke removed the label
Needs gitian build
on May 1, 2021
sidhujag referenced this in commit
788d32deca
on May 1, 2021
DrahtBot
commented at 8:20 pm on May 4, 2021:
member
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: 2024-11-17 12:12 UTC
This site is hosted by @0xB10C More mirrored repositories can be found on mirror.b10c.me