From 6d6b67a63d377c0cb07a5671d52c8d69c09c5466 Mon Sep 17 00:00:00 2001 From: Hyunggi Lee Date: Tue, 1 Jun 2021 14:58:43 +0900 Subject: [PATCH] Enable ccache with build confg ccache enable if listed in the build config BuildFlags: useccache:chromium -> enable --ccache option when chromium package. Need to implement additional features for use ccache.tar Change-Id: I2b12cf44e03fc3a651ec78c081017387c3d6d935 Signed-off-by: Hyunggi Lee --- depanneur | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/depanneur b/depanneur index 51190af..390e142 100755 --- a/depanneur +++ b/depanneur @@ -1985,6 +1985,12 @@ sub build_package { push @args, "--extra-packs=\"$packs\""; } + # Check buildflags for ccache + my @buildflags=`$build_dir/queryconfig buildflags+ useccache --dist '$dist' --configdir '$dist_configs' --archpath '$arch'`; + if (grep ($_ eq $name, grep(s/\s*$//g, @buildflags))) { + push @args, "--ccache"; + } + # Rebuild the package. my $count = scalar(keys %to_build) - scalar (@skipped); info("*** [$index/$count] building $name-$version-$release $arch $dist (worker: $thread) ***"); -- 2.7.4