diff options
author | Eike Ziller <eike.ziller@qt.io> | 2019-08-22 13:04:04 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2019-08-22 13:09:48 +0000 |
commit | 5808ee956911e4dd4c376fd6713f559e2b158138 (patch) | |
tree | 62bf586b28567763dcacaee4b65df0c3f20356f3 /src/plugins/projectexplorer/gcctoolchain.cpp | |
parent | 7d014f0dbf6d607022a42c8d446c1510fd0db345 (diff) |
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>
Diffstat (limited to 'src/plugins/projectexplorer/gcctoolchain.cpp')
-rw-r--r-- | src/plugins/projectexplorer/gcctoolchain.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/gcctoolchain.cpp b/src/plugins/projectexplorer/gcctoolchain.cpp index 01e4e42608b..760fc2f7050 100644 --- a/src/plugins/projectexplorer/gcctoolchain.cpp +++ b/src/plugins/projectexplorer/gcctoolchain.cpp @@ -976,6 +976,9 @@ GccToolChainFactory::GccToolChainFactory() 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 *> known = alreadyKnown; static const auto tcChecker = [](const ToolChain *tc) { |