casper: fix compilation errors on newer compilers (#30142)

This commit is contained in:
snehring 2022-04-20 10:11:05 -05:00 committed by GitHub
parent 974beb4ffc
commit d1d86d68f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)