| 204 | } |
| 205 | |
| 206 | QString MakeFileResolver::mapToBuild(const QString &path) const |
| 207 | { |
| 208 | QString wd = QDir::cleanPath(path); |
| 209 | if (m_outOfSource) { |
| 210 | if (wd.startsWith(m_source) && !wd.startsWith(m_build)) { |
| 211 | //Move the current working-directory out of source, into the build-system |
| 212 | wd = QDir::cleanPath(m_build + QLatin1Char('/') + QStringView{wd}.sliced(m_source.length())); |
| 213 | } |
| 214 | } |
| 215 | return wd; |
| 216 | } |
| 217 | |
| 218 | void MakeFileResolver::clearCache() |
| 219 | { |