Fix setup for changes to dirty flag (#5592)
* Pass dirty arg through setup to setup_package
This commit is contained in:
parent
57643ae84e
commit
5d13f236b4
2 changed files with 7 additions and 3 deletions
|
@ -65,9 +65,9 @@ def spack_transitive_include_path():
|
|||
)
|
||||
|
||||
|
||||
def write_spconfig(package):
|
||||
def write_spconfig(package, dirty):
|
||||
# Set-up the environment
|
||||
spack.build_environment.setup_package(package)
|
||||
spack.build_environment.setup_package(package, dirty)
|
||||
|
||||
cmd = [str(which('cmake'))] + package.std_cmake_args + package.cmake_args()
|
||||
|
||||
|
@ -173,7 +173,8 @@ def setup(self, args):
|
|||
tty.msg(
|
||||
'Generating spconfig.py [{0}]'.format(package.spec.cshort_spec)
|
||||
)
|
||||
write_spconfig(package)
|
||||
dirty = args.dirty
|
||||
write_spconfig(package, dirty)
|
||||
# Install this package to register it in the DB and permit
|
||||
# module file regeneration
|
||||
inst_args = copy.deepcopy(args)
|
||||
|
|
|
@ -662,6 +662,9 @@ def expand_archive(self):
|
|||
def restage(self):
|
||||
tty.die("Cannot restage DIY stage.")
|
||||
|
||||
def create(self):
|
||||
self.created = True
|
||||
|
||||
def destroy(self):
|
||||
# No need to destroy DIY stage.
|
||||
pass
|
||||
|
|
Loading…
Reference in a new issue