do out of source builds in hashed directories (#18574)

This commit is contained in:
Greg Becker 2020-09-18 12:21:13 -07:00 committed by GitHub
parent 58fb6cdaad
commit 7585b37865
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -314,7 +314,8 @@ def build_directory(self):
:return: directory where to build the package
"""
return os.path.join(self.stage.path, 'spack-build')
dirname = 'spack-build=%s' % self.spec.dag_hash(7)
return os.path.join(self.stage.path, dirname)
def cmake_args(self):
"""Produces a list containing all the arguments that must be passed to