[Lldb-commits] [lldb] r323763 - One more TestGDBRemoteClient/windows fix
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Tue Jan 30 06:33:54 PST 2018
Author: labath
Date: Tue Jan 30 06:33:54 2018
New Revision: 323763
URL: http://llvm.org/viewvc/llvm-project?rev=323763&view=rev
Log:
One more TestGDBRemoteClient/windows fix
We also need to be .EXE-aware when searching for the clang binary.
Modified:
lldb/trunk/packages/Python/lldbsuite/test/lldbtest.py
Modified: lldb/trunk/packages/Python/lldbsuite/test/lldbtest.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/lldbtest.py?rev=323763&r1=323762&r2=323763&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/lldbtest.py (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/lldbtest.py Tue Jan 30 06:33:54 2018
@@ -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"]
More information about the lldb-commits
mailing list