File tree Expand file tree Collapse file tree 5 files changed +7
-0
lines changed Expand file tree Collapse file tree 5 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ if(NOT CMAKE_DTS_PREPROCESSOR)
1919endif ()
2020
2121find_program (CMAKE_C_COMPILER ${CROSS_COMPILE} ccac PATH  ${TOOLCHAIN_HOME}  NO_DEFAULT_PATH)
22+ find_program (CMAKE_LLVM_COV ${CROSS_COMPILE} llvm-cov PATH  ${TOOLCHAIN_HOME}  NO_DEFAULT_PATH)
23+ set (CMAKE_GCOV "${CMAKE_LLVM_COV}  gcov" )
2224
2325if (CMAKE_C_COMPILER STREQUAL  CMAKE_C_COMPILER-NOTFOUND )
2426  message (FATAL_ERROR "Zephyr was unable to find the Metaware compiler" )
Original file line number Diff line number Diff line change @@ -5,4 +5,6 @@ if(DEFINED TOOLCHAIN_HOME)
55endif ()
66
77find_program (CMAKE_C_COMPILER clang ${find_program_clang_args} )
8+ find_program (CMAKE_LLVM_COV llvm-cov ${find_program_clang_args} )
9+ set (CMAKE_GCOV "${CMAKE_LLVM_COV}  gcov" )
810
Original file line number Diff line number Diff line change 33set_ifndef(CC gcc)
44
55find_program (CMAKE_C_COMPILER ${CROSS_COMPILE}${CC}    PATHS  ${TOOLCHAIN_HOME}  NO_DEFAULT_PATH)
6+ find_program (CMAKE_GCOV ${CROSS_COMPILE} gcov   PATHS  ${TOOLCHAIN_HOME}  NO_DEFAULT_PATH)
67
78if (CMAKE_C_COMPILER STREQUAL  CMAKE_C_COMPILER-NOTFOUND )
89  message (FATAL_ERROR "Zephyr was unable to find the toolchain. Is the environment misconfigured? 
Original file line number Diff line number Diff line change 33# Configures CMake for using GCC 
44
55find_program (CMAKE_C_COMPILER gcc)
6+ find_program (CMAKE_GCOV gcov)
Original file line number Diff line number Diff line change 33set_ifndef(CC gcc)
44
55find_program (CMAKE_C_COMPILER ${CROSS_COMPILE}${CC}    PATHS  ${TOOLCHAIN_HOME}  NO_DEFAULT_PATH)
6+ find_program (CMAKE_GCOV ${CROSS_COMPILE} gcov   PATHS  ${TOOLCHAIN_HOME}  NO_DEFAULT_PATH)
67
78if (CMAKE_C_COMPILER STREQUAL  CMAKE_C_COMPILER-NOTFOUND )
89  message (FATAL_ERROR "Zephyr was unable to find the toolchain. Is the environment misconfigured? 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments