PE: Do not disable gcc detection on macOS completely

Otherwise we may miss the gcc toolchains on docker devices.
So, keep the detection disabled for desktop devices, but
allow to detect gcc in general.

Change-Id: If8feb33a7dd46451e6c16fc543b6799b7dcdd663
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Stenger
2021-12-09 10:47:45 +01:00
parent a48a96e05c
commit a08a7dda46

View File

@@ -1002,7 +1002,7 @@ GccToolChainFactory::GccToolChainFactory()
Toolchains GccToolChainFactory::autoDetect(const ToolchainDetector &detector) const
{
// GCC is almost never what you want on macOS, but it is by default found in /usr/bin
if (HostOsInfo::isMacHost())
if (HostOsInfo::isMacHost() && (!device || device->type() == Constants::DESKTOP_DEVICE_TYPE))
return {};
Toolchains tcs;
static const auto tcChecker = [](const ToolChain *tc) {