diff --git a/src/shared/proparser/profileevaluator.cpp b/src/shared/proparser/profileevaluator.cpp index bb781a50a5aebb52de1cd72e62d4a7dce042e98d..024dbb52fc6af38699beb114ce1b9f261d7b0147 100644 --- a/src/shared/proparser/profileevaluator.cpp +++ b/src/shared/proparser/profileevaluator.cpp @@ -100,7 +100,8 @@ QString ProFileEvaluator::sysrootify(const QString &path, const QString &baseDir #endif const bool isHostSystemPath = option->sysroot.isEmpty() || path.startsWith(option->sysroot, cs) - || path.startsWith(baseDir, cs) || path.startsWith(d->m_outputDir, cs); + || path.startsWith(baseDir, cs) || path.startsWith(d->m_outputDir, cs) + || !QFileInfo(option->sysroot + path).exists(); return isHostSystemPath ? path : option->sysroot + path; }