File tree Expand file tree Collapse file tree 4 files changed +12
-8
lines changed Expand file tree Collapse file tree 4 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 2222      script : | 
2323        set -eux 
2424
25+         # Use sccache for NDK compiler as well 
26+         export CMAKE_CXX_COMPILER_LAUNCHER=sccache 
27+         export CMAKE_C_COMPILER_LAUNCHER=sccache 
28+ 
2529        # The generic Linux job chooses to use base env, not the one setup by the image 
2630        CONDA_ENV=$(conda env list --json | jq -r ".envs | .[-1]") 
2731        conda activate "${CONDA_ENV}" 
5963
6064        sccache --show-stats 
6165
62- 
63- 
6466   #  Running Android emulator directly on the runner and not using Docker
6567  run-emulator :
6668    needs : build-llm-demo 
Original file line number Diff line number Diff line change @@ -353,6 +353,10 @@ jobs:
353353      script : | 
354354        set -eux 
355355
356+         # Use sccache for NDK compiler as well 
357+         export CMAKE_CXX_COMPILER_LAUNCHER=sccache 
358+         export CMAKE_C_COMPILER_LAUNCHER=sccache 
359+ 
356360        # The generic Linux job chooses to use base env, not the one setup by the image 
357361        CONDA_ENV=$(conda env list --json | jq -r ".envs | .[-1]") 
358362        conda activate "${CONDA_ENV}" 
Original file line number Diff line number Diff line change 5959      script : | 
6060        set -eux 
6161
62+         # Use sccache for NDK compiler as well 
63+         export CMAKE_CXX_COMPILER_LAUNCHER=sccache 
64+         export CMAKE_C_COMPILER_LAUNCHER=sccache 
65+ 
6266        # The generic Linux job chooses to use base env, not the one setup by the image 
6367        CONDA_ENV=$(conda env list --json | jq -r ".envs | .[-1]") 
6468        conda activate "${CONDA_ENV}" 
Original file line number Diff line number Diff line change @@ -57,12 +57,6 @@ if(NOT CMAKE_BUILD_TYPE)
5757  set (CMAKE_BUILD_TYPE  Debug)
5858endif ()
5959
60- find_program (SCCACHE sccache)
61- if (SCCACHE)
62-   set (CMAKE_C_COMPILER_LAUNCHER ${SCCACHE}  CACHE  STRING  "C compiler launcher"  FORCE)
63-   set (CMAKE_CXX_COMPILER_LAUNCHER ${SCCACHE}  CACHE  STRING  "C++ compiler launcher"  FORCE)
64- endif ()
65- 
6660# Setup RPATH. 
6761# See https://gitlab.kitware.com/cmake/community/-/wikis/doc/cmake/RPATH-handling 
6862# Use separate rpaths during build and install phases 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments