Add more compiler leniency (#46083)
This commit is contained in:
parent
ec85bbe3f7
commit
699735016f
@ -74,9 +74,14 @@ class Mgard(CMakePackage, CudaPackage):
|
|||||||
|
|
||||||
def flag_handler(self, name, flags):
|
def flag_handler(self, name, flags):
|
||||||
if name == "cxxflags":
|
if name == "cxxflags":
|
||||||
if self.spec.satisfies("@2020-10-01 %oneapi@2023:"):
|
for a_spec in [
|
||||||
flags.append("-Wno-error=c++11-narrowing")
|
"@2020-10-01 %oneapi@2023:",
|
||||||
if self.spec.satisfies("@2020-10-01 %apple-clang@15:"):
|
"@2020-10-01 %apple-clang@15:",
|
||||||
|
"@2020-10-01 %aocc@3:",
|
||||||
|
"@2020-10-01 %cce@15:",
|
||||||
|
"@2020-10-01 %rocmcc@4:",
|
||||||
|
]:
|
||||||
|
if self.spec.satisfies(a_spec):
|
||||||
flags.append("-Wno-error=c++11-narrowing")
|
flags.append("-Wno-error=c++11-narrowing")
|
||||||
return (flags, None, None)
|
return (flags, None, None)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user