Perl take in flags (#12112)
* perl: perl package takes in spack cflags. * fix for flake8 test.
This commit is contained in:
parent
bbc689ae38
commit
0f98cf0398
1 changed files with 5 additions and 0 deletions
|
@ -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"""
|
||||
|
|
Loading…
Reference in a new issue