forked from qt-creator/qt-creator
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user