Skip to content

Commit 17bb07d

Browse files
committed
#6913 max-configs=1 buggs out includefile resolving in case of circular dependency. Use simplified paths for internal list of includes parsed already
1 parent a892e6e commit 17bb07d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/preprocessor.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2285,7 +2285,8 @@ std::string Preprocessor::handleIncludes(const std::string &code, const std::str
22852285
continue;
22862286
}
22872287

2288-
includes.push_back(filename);
2288+
// #6913 - simplify Path to avoid strange recursion
2289+
includes.push_back(Path::simplifyPath(filename));
22892290

22902291
// Don't include header if it's already included and contains #pragma once
22912292
if (pragmaOnce.find(filename) != pragmaOnce.end()) {

0 commit comments

Comments
 (0)