From 939b42c8e38d3800877f93f30e0b72b45ca677ac Mon Sep 17 00:00:00 2001 From: Eidolon Date: Thu, 16 May 2024 15:42:04 -0500 Subject: [PATCH] Configure CCACHE launcher for Debian amd64 CI Let's not rely on the CMakeLists.txt to automatically detect and use ccache. It's better to just explicitly specify it. --- .gitlab/ci/jobs/debian-stable-amd64.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitlab/ci/jobs/debian-stable-amd64.yml b/.gitlab/ci/jobs/debian-stable-amd64.yml index 3124f96d0..0b4149c9b 100644 --- a/.gitlab/ci/jobs/debian-stable-amd64.yml +++ b/.gitlab/ci/jobs/debian-stable-amd64.yml @@ -39,7 +39,13 @@ Debian stable:amd64: - - | # cmake echo -e "\e[0Ksection_start:`date +%s`:cmake[collapsed=false]\r\e[0KBuilding Makefiles" - - cmake -B build.cmake -DSRB2_CONFIG_ENABLE_WEBM_MOVIES=OFF -G "Unix Makefiles" + - | + CCACHE=$(which ccache) + cmake -B build.cmake \ + -G "Unix Makefiles" \ + -DCMAKE_C_COMPILER_LAUNCHER=$CCACHE \ + -DCMAKE_CXX_COMPILER_LAUNCHER=$CCACHE \ + -DSRB2_CONFIG_ENABLE_WEBM_MOVIES=OFF - | # cmake echo -e "\e[0Ksection_end:`date +%s`:cmake\r\e[0K"