From: Hyunggi Lee Date: Tue, 1 Jun 2021 05:58:43 +0000 (+0900) Subject: Enable ccache with build confg X-Git-Tag: accepted/tizen/devbase/tools/20210714.004931~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6d6b67a63d377c0cb07a5671d52c8d69c09c5466;p=tools%2Fdepanneur.git 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 --- 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) ***");