summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authort-karatsu <49965247+t-karatsu@users.noreply.github.com>2019-07-25 02:32:49 +0900
committerAdam J. Stewart <ajstewart426@gmail.com>2019-07-24 12:32:49 -0500
commit0f98cf03988a53505fccb22971a4b10e37e3ee48 (patch)
tree6667fb202c5de0f0f355b239ce2d1a7924747ca0 /var
parentbbc689ae38da835b2e7d700ca4eb9ccb92daad43 (diff)
downloadspack-0f98cf03988a53505fccb22971a4b10e37e3ee48.tar.gz
spack-0f98cf03988a53505fccb22971a4b10e37e3ee48.tar.bz2
spack-0f98cf03988a53505fccb22971a4b10e37e3ee48.tar.xz
spack-0f98cf03988a53505fccb22971a4b10e37e3ee48.zip
Perl take in flags (#12112)
* perl: perl package takes in spack cflags. * fix for flake8 test.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/perl/package.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/perl/package.py b/var/spack/repos/builtin/packages/perl/package.py
index 1825832644..2d1ed46f87 100644
--- a/var/spack/repos/builtin/packages/perl/package.py
+++ b/var/spack/repos/builtin/packages/perl/package.py
@@ -239,6 +239,11 @@ class Perl(Package): # Perl doesn't use Autotools, it should subclass Package
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"""