Skip to content

qmake: Ignore stderr when determining the macOS SDK version

Christopher Chavez requested to merge (removed):QTBUG-102066 into kde/5.15

This is a patch which I submitted and Qt accepted (will appear in 5.15.10). It addresses a build error on macOS encountered by multiple users. See https://bugreports.qt.io/browse/QTBUG-102066

(I am not aware if any Mac users actively use this patch collection, but hopefully this makes it more appealing.)

If xcrun prints warnings or errors to stderr while determining the SDK version, they become part of the SDK version string. This then leads to a qmake error.

Intentionally ignore stderr so that it is not treated as part of the SDK version.

Pick-to: 5.15 6.2 6.3 Fixes: QTBUG-102066 Change-Id: I023296b430aac1407c970412c5cf1010bd81589b Reviewed-by: Tor Arne Vestbø tor.arne.vestbo@qt.io (cherry picked from commit 845d28ca)

Merge request reports