diff options
| author | Vladislav Dzhidzhoev <vdzhidzhoev@accesssoftek.com> | 2024-07-09 14:22:33 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-09 14:22:33 +0200 |
| commit | afee09c50c11da1ea6ba0b341a1c10dedeaf5be6 (patch) | |
| tree | 2794cca6b4fdf228da84b89ab20d42f245eda897 /lldb/source/Plugins/ExpressionParser/Clang/CppModuleConfiguration.cpp | |
| parent | a9183b8899f2c02ba3710b27c0cbdde6831a627b (diff) | |
[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.
Diffstat (limited to 'lldb/source/Plugins/ExpressionParser/Clang/CppModuleConfiguration.cpp')
| -rw-r--r-- | lldb/source/Plugins/ExpressionParser/Clang/CppModuleConfiguration.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/ExpressionParser/Clang/CppModuleConfiguration.cpp b/lldb/source/Plugins/ExpressionParser/Clang/CppModuleConfiguration.cpp index f43a04488230..f3aabc12f92b 100644 --- a/lldb/source/Plugins/ExpressionParser/Clang/CppModuleConfiguration.cpp +++ b/lldb/source/Plugins/ExpressionParser/Clang/CppModuleConfiguration.cpp @@ -71,7 +71,7 @@ bool CppModuleConfiguration::analyzeFile(const FileSpec &f, // If the path is in the libc++ include directory use it as the found libc++ // path. Ignore subdirectories such as /c++/v1/experimental as those don't // need to be specified in the header search. - if (libcpp_regex.match(f.GetPath()) && + if (libcpp_regex.match(convert_to_slash(f.GetPath())) && parent_path(posix_dir, Style::posix).ends_with("c++")) { if (!m_std_inc.TrySet(posix_dir)) return false; |
