Skip to content

Commit 35c7080

Browse files
committed
Trigger sccache
1 parent 9350bd3 commit 35c7080

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

.github/workflows/_android.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ jobs:
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}"
@@ -59,8 +63,6 @@ jobs:
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

.github/workflows/android-perf.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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}"

.github/workflows/android-release-artifacts.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ jobs:
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}"

CMakeLists.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,6 @@ if(NOT CMAKE_BUILD_TYPE)
5757
set(CMAKE_BUILD_TYPE Debug)
5858
endif()
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

0 commit comments

Comments
 (0)