diff options
-rw-r--r-- | buildstream/_project.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/buildstream/_project.py b/buildstream/_project.py index b568cf852..0273f2cc3 100644 --- a/buildstream/_project.py +++ b/buildstream/_project.py @@ -164,8 +164,12 @@ class Project(): if self._cache_key is None: # Anything that alters the build goes into the unique key - # (currently nothing here) - self._cache_key = _cachekey.generate_key({}) + cache_key_dict = {} + + if self.fail_on_overlap: + cache_key_dict['fail-on-overlap'] = True + + self._cache_key = _cachekey.generate_key(cache_key_dict) return self._cache_key |