From 30f6d2ab9026fea79fb6623f80bf51a68df16818 Mon Sep 17 00:00:00 2001 From: becker33 Date: Tue, 25 Jul 2017 13:51:56 -0700 Subject: [PATCH] fix callpath bug (#4659) * fix callpath bug I found while testing env/cc * fix hanging indent for flake --- var/spack/repos/builtin/packages/callpath/package.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/var/spack/repos/builtin/packages/callpath/package.py b/var/spack/repos/builtin/packages/callpath/package.py index 9ded62e5c5d..813e491dfdd 100644 --- a/var/spack/repos/builtin/packages/callpath/package.py +++ b/var/spack/repos/builtin/packages/callpath/package.py @@ -46,7 +46,9 @@ def install(self, spec, prefix): # TODO: offer options for the walker used. cmake_args = std_cmake_args if spec.satisfies("^dyninst@9.3.0:"): - cmake_args.append("-DCMAKE_CXX_FLAGS='-std=c++11 -fpermissive'") + std_flag = self.compiler.cxx11_flag + cmake_args.append("-DCMAKE_CXX_FLAGS='{0} -fpermissive'".format( + std_flag)) cmake('.', "-DCALLPATH_WALKER=dyninst", *cmake_args) make() make("install")