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
@ -239,6 +239,11 @@ def filter_config_dot_pm(self):
|
|||||||
substitute = "ld='{ld}'".format(ld=self.compiler.cc)
|
substitute = "ld='{ld}'".format(ld=self.compiler.cc)
|
||||||
filter_file(match, substitute, config_heavy, **kwargs)
|
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
|
@contextmanager
|
||||||
def make_briefly_writable(self, path):
|
def make_briefly_writable(self, path):
|
||||||
"""Temporarily make a file writable, then reset"""
|
"""Temporarily make a file writable, then reset"""
|
||||||
|
Loading…
Reference in New Issue
Block a user