silo %oneapi: add cflags: -Wno-error=int, -Wno-error=int-conversion (#39475)

This commit is contained in:
eugeneswalker 2023-08-17 01:42:58 -07:00 committed by GitHub
parent b613bf3855
commit 4818b75814
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -109,6 +109,9 @@ def flag_handler(self, name, flags):
elif name == "fcflags":
flags.append(self.compiler.fc_pic_flag)
if name == "cflags" or name == "cxxflags":
if spec.satisfies("%oneapi"):
flags.append("-Wno-error=int")
flags.append("-Wno-error=int-conversion")
if "+hdf5" in spec:
# @:4.10 can use up to the 1.10 API
if "@:4.10" in spec: