diff --git a/src/plugins/projectexplorer/gcctoolchain.cpp b/src/plugins/projectexplorer/gcctoolchain.cpp index 2b9e05a1d72..d3a74b5fa50 100644 --- a/src/plugins/projectexplorer/gcctoolchain.cpp +++ b/src/plugins/projectexplorer/gcctoolchain.cpp @@ -1453,6 +1453,8 @@ Toolchains GccToolchainFactory::autoDetect(const ToolchainDetector &detector) co executables.removeOne(FilePath::fromPathPart(u"/usr/bin/g++")); } + Utils::sort(executables); + const OsType os = detector.device->osType(); Toolchains result;