[Lldb-commits] [PATCH] Fix for lldb unit test: TestAnonymous.py, et al., when using ccache

Doug Snyder dsnyder at blueshiftinc.com
Mon Oct 27 16:30:26 PDT 2014

Hi dmalea,

This patch fixes the following unit tests when the lldb unit tests are run on ubuntu

The unit tests fail when lldb is configured/built with cache or when the individual unit tests are built with cache.  Under these conditions, the "compiler" variable in lldbtest.py's getCompilerVersion() contains the ccache prefix or compiler options in addition to the compiler name.  The which() function in lldbutil does not handle multiple words well and returns "None" - even though clang is embedded in the compiler name.

This patch strips off any prefixes and/or options by looking for the last word in the compiler variable that appears to be an executable and then discarding everything else.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6007.15505.patch
Type: text/x-patch
Size: 896 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20141027/8dcda7f8/attachment.bin>

More information about the lldb-commits mailing list