зеркало из https://github.com/microsoft/clang-1.git
fix an interaction between -isystem . and isysroot.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47646 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
5a7b3821c6
Коммит
4df85f55bb
|
@ -698,8 +698,6 @@ static void AddPath(const std::string &Path, IncludeDirGroup Group,
|
|||
// handle things like C:\ right, nor win32 \\network\device\blah.
|
||||
if (isysroot.size() != 1 || isysroot[0] != '/') // Add isysroot if present.
|
||||
MappedPath.append(isysroot.begin(), isysroot.end());
|
||||
if (Path[0] != '/') // If in the system group, add a /.
|
||||
MappedPath.push_back('/');
|
||||
}
|
||||
|
||||
MappedPath.append(Path.begin(), Path.end());
|
||||
|
|
Загрузка…
Ссылка в новой задаче