From 0b12f4f2ac7e1473984a478207c818fcb4315544 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Sun, 16 Oct 2022 10:49:04 +0200 Subject: [PATCH] fix the declaration --- debian/rules | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/debian/rules b/debian/rules index ff4e3d09..f031abfc 100755 --- a/debian/rules +++ b/debian/rules @@ -427,8 +427,6 @@ ifeq ($(shell test -e /tmp/sccache && echo -n yes),yes) export SCCACHE_GCS_RW_MODE=READ_WRITE export SCCACHE_LOG=sccache=debug export SCCACHE_ERROR_LOG=/tmp/sccache.log - mkdir -p ~/.config/sccache/ - touch ~/.config/sccache/config STAGE_1_CMAKE_EXTRA += -DCMAKE_C_COMPILER_LAUNCHER=/tmp/sccache -DCMAKE_CXX_COMPILER_LAUNCHER=/tmp/sccache endif @@ -545,6 +543,12 @@ override_dh_auto_configure: preconfigure --xml-option append_arg:"replace/llvm::AlignOf::Alignment/(llvm::AlignOf::Alignment)"; \ fi) +# If we use sccache, create temporary conf file + if test -f /tmp/sccache; then \ + mkdir -p ~/.config/sccache/; \ + touch ~/.config/sccache/config; \ + fi + # Fails with No target "unwind_static" # -DLIBCXXABI_ENABLE_STATIC_UNWINDER=ON \ # -DLIBCXXABI_STATICALLY_LINK_UNWINDER_IN_SHARED_LIBRARY=OFF \