summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-03-16 20:02:31 +0100
committerCarl Hetherington <cth@carlh.net>2025-03-16 20:02:31 +0100
commit242d1452831c23ce6949febb33712dd48e8d7871 (patch)
treee132ab7fd2ec507377a04e9765e89ddd62b0b0ac
parent255f66098b31abbfec8da835c11a2e0f542078d2 (diff)
Handle debug flag for sub targets correctly.
-rwxr-xr-xcdist15
1 files changed, 14 insertions, 1 deletions
diff --git a/cdist b/cdist
index 33c8846..cbbca0c 100755
--- a/cdist
+++ b/cdist
@@ -360,7 +360,7 @@ class Target:
# Environment variables that we will use when we call cscripts
self.variables = {}
- self.debug = False
+ self._debug = False
self._ccache = False
# True to build our dependencies ourselves; False if this is taken care
# of in some other way
@@ -479,6 +479,14 @@ class Target:
def ccache(self, v):
self._ccache = v
+ @property
+ def debug(self):
+ return self._debug
+
+ @debug.setter
+ def debug(self, v):
+ self._debug = v
+
class DockerTarget(Target):
def __init__(self, *a, **k):
@@ -849,6 +857,11 @@ class OSXUniversalTarget(OSXTarget):
for target in self.sub_targets:
target.ccache = v
+ @Target.debug.setter
+ def debug(self, v):
+ for target in self.sub_targets:
+ target.debug = v
+
class SourceTarget(Target):
"""Build a source .tar.bz2 and .zst"""