diff options
author | Pavel Labath <labath@google.com> | 2018-01-30 14:33:54 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2018-01-30 14:33:54 +0000 |
commit | 26fa1f2be3eb931ee7aeab231fe048e7a7782089 (patch) | |
tree | 89cba0857283b4b483f16335c503289ea213f541 /lldb/packages/Python/lldbsuite/test | |
parent | ce256fd5f76a0613abe29172c3225cf77c0dc2f4 (diff) | |
download | bcm5719-llvm-26fa1f2be3eb931ee7aeab231fe048e7a7782089.tar.gz bcm5719-llvm-26fa1f2be3eb931ee7aeab231fe048e7a7782089.zip |
One more TestGDBRemoteClient/windows fix
We also need to be .EXE-aware when searching for the clang binary.
llvm-svn: 323763
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/lldbtest.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/lldbtest.py b/lldb/packages/Python/lldbsuite/test/lldbtest.py index 4256e86d6fe..2baeb8ad399 100644 --- a/lldb/packages/Python/lldbsuite/test/lldbtest.py +++ b/lldb/packages/Python/lldbsuite/test/lldbtest.py @@ -1603,8 +1603,9 @@ class Base(unittest2.TestCase): return path # Tries to find clang at the same folder as the lldb - path = os.path.join(os.path.dirname(lldbtest_config.lldbExec), "clang") - if os.path.exists(path): + lldb_dir = os.path.dirname(lldbtest_config.lldbExec) + path = distutils.spawn.find_executable("clang", lldb_dir) + if path is not None: return path return os.environ["CC"] |