Skip to content

Commit

Permalink
ccache
Browse files Browse the repository at this point in the history
  • Loading branch information
acezen committed Feb 16, 2023
1 parent 5d3741e commit 460ae2c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ jobs:
run: |
pushd build
make -j$(nproc)
make ccache-stats
make gar-ccache-stats
popd
- name: Test
Expand Down
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ if(NOT (CMAKE_CXX_COMPILER_LAUNCHER MATCHES "ccache") AND NOT (CMAKE_C_COMPILER_
if(ccache_EXECUTABLE)
set(CMAKE_C_COMPILER_LAUNCHER ${ccache_EXECUTABLE})
set(CMAKE_CXX_COMPILER_LAUNCHER ${ccache_EXECUTABLE})
add_custom_target(ccache-stats
add_custom_target(gar-ccache-stats
COMMAND ${ccache_EXECUTABLE} --show-stats
)
else()
add_custom_target(ccache-stats
add_custom_target(gar-ccache-stats
COMMAND echo "ccache not found."
)
endif(ccache_EXECUTABLE)
Expand Down

0 comments on commit 460ae2c

Please sign in to comment.