summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorketsubouchi <67359246+ketsubouchi@users.noreply.github.com>2020-07-03 15:39:04 +0900
committerGitHub <noreply@github.com>2020-07-02 23:39:04 -0700
commit986f68f7ed3b06ccd9ec44d1c8896a97f64c4920 (patch)
tree1aefa79cf5515045a3874f366f0cf782a3b32c6f
parent2cd9e1eb62dd2d3b1cc6d9f21bdbc7e0bee0057d (diff)
downloadspack-986f68f7ed3b06ccd9ec44d1c8896a97f64c4920.tar.gz
spack-986f68f7ed3b06ccd9ec44d1c8896a97f64c4920.tar.bz2
spack-986f68f7ed3b06ccd9ec44d1c8896a97f64c4920.tar.xz
spack-986f68f7ed3b06ccd9ec44d1c8896a97f64c4920.zip
blktrace: use Spack compiler wrappers (#17365)
-rw-r--r--var/spack/repos/builtin/packages/blktrace/package.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/blktrace/package.py b/var/spack/repos/builtin/packages/blktrace/package.py
index d088439139..bf0b1eae05 100644
--- a/var/spack/repos/builtin/packages/blktrace/package.py
+++ b/var/spack/repos/builtin/packages/blktrace/package.py
@@ -27,5 +27,12 @@ class Blktrace(MakefilePackage):
depends_on('libaio')
+ def edit(self, spec, prefix):
+ makefiles = ['Makefile', 'btreplay/Makefile',
+ 'btt/Makefile', 'iowatcher/Makefile']
+ for m in makefiles:
+ makefile = FileFilter(m)
+ makefile.filter('CC.*=.*', 'CC = {0}'.format(spack_cc))
+
def install(self, spec, prefix):
install_tree('.', prefix)