From d1d86d68f11b97d0d6f0bbb79ec282bb2e00f3fb Mon Sep 17 00:00:00 2001 From: snehring Date: Wed, 20 Apr 2022 10:11:05 -0500 Subject: [PATCH] casper: fix compilation errors on newer compilers (#30142) --- var/spack/repos/builtin/packages/casper/package.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/var/spack/repos/builtin/packages/casper/package.py b/var/spack/repos/builtin/packages/casper/package.py index 436c131047..f841a54629 100644 --- a/var/spack/repos/builtin/packages/casper/package.py +++ b/var/spack/repos/builtin/packages/casper/package.py @@ -22,6 +22,11 @@ class Casper(MakefilePackage): conflicts('%gcc@7.1.0') + def flag_handler(self, name, flags): + if name.lower() == 'cxxflags': + flags.append(self.compiler.cxx98_flag) + return (flags, None, None) + def install(self, spec, prefix): install_tree('.', prefix)