Enable ccache with build confg 97/259097/2
authorHyunggi Lee <hyunggi.lee@samsung.com>
Tue, 1 Jun 2021 05:58:43 +0000 (14:58 +0900)
committerHyunggi Lee <hyunggi.lee@samsung.com>
Tue, 1 Jun 2021 07:53:42 +0000 (16:53 +0900)
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 <hyunggi.lee@samsung.com>
depanneur

index 51190af..390e142 100755 (executable)
--- 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) ***");