diff options
author | Zachary Turner <zturner@google.com> | 2015-05-13 19:44:57 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2015-05-13 19:44:57 +0000 |
commit | ff33eefcc7d35bf11330240416a26804c6ff0d2e (patch) | |
tree | 58e2c45307105009d13669d078eb65d37b738733 /clang/lib/Frontend/InitPreprocessor.cpp | |
parent | 1aa755ce772a311a1c5280578d6303be8d088203 (diff) | |
download | llvm-ff33eefcc7d35bf11330240416a26804c6ff0d2e.zip llvm-ff33eefcc7d35bf11330240416a26804c6ff0d2e.tar.gz llvm-ff33eefcc7d35bf11330240416a26804c6ff0d2e.tar.bz2 |
Fix an issue with finding python on Windows.
Someone must have changed the behavior of FileSpec slightly
relating to whether or not there is a trailing backslash when calling
GetPath() and GetDirectory(). This caused ScriptInterpreterPython
to find the wrong values when initializing sys.path, and as a result
we couldn't find the lldb module.
This patch fixes the issue, and also adds a test to make sure that
GetDirectory() does not return a string containing a trailing slash.
llvm-svn: 237282
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
0 files changed, 0 insertions, 0 deletions