[Lldb-commits] [lldb] r176596 - Fix running of LLDB tests with cmake+ninja+ccache

Daniel Malea daniel.malea at intel.com
Wed Mar 6 16:50:55 PST 2013


Author: dmalea
Date: Wed Mar  6 18:50:54 2013
New Revision: 176596

URL: http://llvm.org/viewvc/llvm-project?rev=176596&view=rev
Log:
Fix running of LLDB tests with cmake+ninja+ccache
- Avoid passing 'ccache' as the test compiler. Instead, use first arg after ccache.


Modified:
    lldb/trunk/test/CMakeLists.txt

Modified: lldb/trunk/test/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/CMakeLists.txt?rev=176596&r1=176595&r2=176596&view=diff
==============================================================================
--- lldb/trunk/test/CMakeLists.txt (original)
+++ lldb/trunk/test/CMakeLists.txt Wed Mar  6 18:50:54 2013
@@ -11,10 +11,12 @@ function(add_python_test_target name tes
     )
 endfunction()
 
+string(REGEX REPLACE ".*ccache\ +" "" LLDB_TEST_COMPILER ${CMAKE_C_COMPILER} ${CMAKE_C_COMPILER_ARG1})
+
 # Users can override LLDB_TEST_ARGS to modify the way LLDB tests are run. See help below.
 set(LLDB_TEST_ARGS
   -C
-  ${CMAKE_C_COMPILER}
+  ${LLDB_TEST_COMPILER}
   CACHE STRING "Specify compiler(s) and architecture(s) with which run LLDB tests. For example: '-C gcc -C clang -A i386 -A x86_64'"
   )
 string(REPLACE " " ";" LLDB_TEST_ARGS ${LLDB_TEST_ARGS})





More information about the lldb-commits mailing list