Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
qmake5 pg: use xcrun to test for SDK availability
Instead of testing for the path, just use `xcrun` to verify the availability of the desired SDK version. The existence of an appropriately named SDK directory (e.g. `MacOSX${configure.sdk_version}.sdk`) is not sufficient to determine whether the desired SDK actually exists; e.g., a compatibility symlink might exist, but actually point to a later SDK version. Without this change, qmake builds will fail when the toolchain actually attempts to resolve such an SDK version.
- Loading branch information
9887e90
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
9887e90
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
xcodebuild doesn't seem to cut it either.
There are some open source replacements for xcrun that I have been looking at that work like newer versions of xcrun. Perhaps one day one of those might be useable for this, with a path that works (ie won't be /usr/bin).
9887e90
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, shoot; what about searching for some known-to-exist tool? E.g.
xcrun —sdk macosx10.7 -f ld
?9887e90
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm with you -- not good to bring the whole system down to the level of the oldest systems we support. We'll figure something out.
9887e90
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MarcusCalhoun-Lopez : if you have a moment, can you take a peek here and see how we can keep @landonf 's modernizations without losing support for the older systems in the process?
9887e90
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The suggestion @landonf to use
-f ld
instead of--show-sdk-path
seems to work.There is a pull request that attempt to implement this idea.
Any feedback would be appreciated.