hdf5@1.8.21 %oneapi@2023.0.0: -Wno-error=int-conversion (#34983)

This commit is contained in:
eugeneswalker 2023-01-18 14:23:00 -06:00 committed by GitHub
parent c9e85ada15
commit e391edf2f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -341,6 +341,8 @@ def flag_handler(self, name, flags):
# More recent versions set CMAKE_POSITION_INDEPENDENT_CODE to
# True and build with PIC flags.
cmake_flags.append(self.compiler.cc_pic_flag)
if spec.satisfies("@1.8.21 %oneapi@2023.0.0"):
cmake_flags.append("-Wno-error=int-conversion")
elif name == "cxxflags":
if spec.satisfies("@:1.8.12+cxx~shared"):
cmake_flags.append(self.compiler.cxx_pic_flag)