Perl take in flags (#12112)

* perl: perl package takes in spack cflags.

* fix for flake8 test.
This commit is contained in:
t-karatsu 2019-07-25 02:32:49 +09:00 committed by Adam J. Stewart
parent bbc689ae38
commit 0f98cf0398

View file

@ -239,6 +239,11 @@ def filter_config_dot_pm(self):
substitute = "ld='{ld}'".format(ld=self.compiler.cc)
filter_file(match, substitute, config_heavy, **kwargs)
match = "^ccflags='"
substitute = "ccflags='%s " % ' '\
.join(self.spec.compiler_flags['cflags'])
filter_file(match, substitute, config_heavy, **kwargs)
@contextmanager
def make_briefly_writable(self, path):
"""Temporarily make a file writable, then reset"""