Possibly fix OSXUniversalTarget with ccache.
authorCarl Hetherington <cth@carlh.net>
Sat, 24 Feb 2024 21:42:01 +0000 (22:42 +0100)
committerCarl Hetherington <cth@carlh.net>
Sat, 24 Feb 2024 21:42:08 +0000 (22:42 +0100)
cdist

diff --git a/cdist b/cdist
index b31ee7f5164893c7ad96f10d1d54a362212fa37d..4faa3009e73560fd4467aa4da1a04380d93b01be 100755 (executable)
--- a/cdist
+++ b/cdist
@@ -880,6 +880,11 @@ class OSXUniversalTarget(OSXTarget):
 
         super().package(project, checkout, output_dir, options, notarize)
 
+    @Target.ccache.setter
+    def ccache(self, v):
+        for target in self.sub_targets:
+            target.ccache = v
+
 
 class SourceTarget(Target):
     """Build a source .tar.bz2 and .zst"""