forked from qt-creator/qt-creator
Disable GCC auto-detection on macOS
It is almost never what you want (it is totally outdated), but it is found in /usr/bin anyhow. People who want GCC can still register it of course, and people who used it before will keep having it as manually registered. Change-Id: If5722f6e9521bb74160da064bb4dee8db28efdb9 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -976,6 +976,9 @@ GccToolChainFactory::GccToolChainFactory()
|
|||||||
|
|
||||||
QList<ToolChain *> GccToolChainFactory::autoDetect(const QList<ToolChain *> &alreadyKnown)
|
QList<ToolChain *> GccToolChainFactory::autoDetect(const QList<ToolChain *> &alreadyKnown)
|
||||||
{
|
{
|
||||||
|
// GCC is almost never what you want on macOS, but it is by default found in /usr/bin
|
||||||
|
if (HostOsInfo::isMacHost())
|
||||||
|
return {};
|
||||||
QList<ToolChain *> tcs;
|
QList<ToolChain *> tcs;
|
||||||
QList<ToolChain *> known = alreadyKnown;
|
QList<ToolChain *> known = alreadyKnown;
|
||||||
static const auto tcChecker = [](const ToolChain *tc) {
|
static const auto tcChecker = [](const ToolChain *tc) {
|
||||||
|
Reference in New Issue
Block a user