diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-03-16 20:02:31 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-03-16 20:02:31 +0100 |
| commit | 242d1452831c23ce6949febb33712dd48e8d7871 (patch) | |
| tree | e132ab7fd2ec507377a04e9765e89ddd62b0b0ac | |
| parent | 255f66098b31abbfec8da835c11a2e0f542078d2 (diff) | |
Handle debug flag for sub targets correctly.
| -rwxr-xr-x | cdist | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -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""" |
