From a08a7dda46d680f7f52737e6867bf362bcc2e494 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Thu, 9 Dec 2021 10:47:45 +0100 Subject: [PATCH] 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 --- src/plugins/projectexplorer/gcctoolchain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/projectexplorer/gcctoolchain.cpp b/src/plugins/projectexplorer/gcctoolchain.cpp index 9ba63b54004..3ce881ae7fa 100644 --- a/src/plugins/projectexplorer/gcctoolchain.cpp +++ b/src/plugins/projectexplorer/gcctoolchain.cpp @@ -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) {