Skip to content

Commit afee09c

Browse files
authored
[lldb] Use correct path separator for C++ library files lookup (#98144)
Use POSIX-style path separators when checking for libcpp library path. This is necessary to run API tests from 'std-module' group compiled on Windows host for Linux target.
1 parent a9183b8 commit afee09c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Plugins/ExpressionParser/Clang/CppModuleConfiguration.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ bool CppModuleConfiguration::analyzeFile(const FileSpec &f,
7171
// If the path is in the libc++ include directory use it as the found libc++
7272
// path. Ignore subdirectories such as /c++/v1/experimental as those don't
7373
// need to be specified in the header search.
74-
if (libcpp_regex.match(f.GetPath()) &&
74+
if (libcpp_regex.match(convert_to_slash(f.GetPath())) &&
7575
parent_path(posix_dir, Style::posix).ends_with("c++")) {
7676
if (!m_std_inc.TrySet(posix_dir))
7777
return false;

0 commit comments

Comments
 (0)