From 460ae2c8475ec483480e9f59f22e98b949e1a6bf Mon Sep 17 00:00:00 2001 From: acezen Date: Thu, 16 Feb 2023 13:22:39 +0800 Subject: [PATCH] ccache --- .github/workflows/ci.yml | 2 +- CMakeLists.txt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f2a658668..cb63eeebc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -109,7 +109,7 @@ jobs: run: | pushd build make -j$(nproc) - make ccache-stats + make gar-ccache-stats popd - name: Test diff --git a/CMakeLists.txt b/CMakeLists.txt index fd4bfe3a2..e531b0cd4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)