summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2021-03-13 16:03:50 -0800
committerTodd Gamblin <tgamblin@llnl.gov>2021-05-22 11:51:20 -0700
commit4d148a430e77a9d7842f3c02797e760dd87c8f63 (patch)
treea4b57f2efbef6b774883fd90b15710574bf9f10b /bin
parent9717e0244f70892ec4cf8573bf0b88ec95840894 (diff)
downloadspack-4d148a430e77a9d7842f3c02797e760dd87c8f63.tar.gz
spack-4d148a430e77a9d7842f3c02797e760dd87c8f63.tar.bz2
spack-4d148a430e77a9d7842f3c02797e760dd87c8f63.tar.xz
spack-4d148a430e77a9d7842f3c02797e760dd87c8f63.zip
bugfix: allow imposed constraints to be overridden in special cases
In most cases, we want condition_holds(ID) to imply any imposed constraints associated with the ID. However, the dependency relationship in Spack is special because it's "extra" conditional -- a dependency *condition* may hold, but we have decided that externals will not have dependencies, so we need a way to avoid having imposed constraints appear for nodes that don't exist. This introduces a new rule that says that constraints are imposed *unless* we define `do_not_impose(ID)`. This allows rules like dependencies, which rely on more than just spec conditions, to cancel imposed constraints. We add one special case for this: dependencies of externals.
Diffstat (limited to 'bin')
0 files changed, 0 insertions, 0 deletions