Skip to content

Commit

Permalink
Merge pull request #452 from climbfuji/bugfix/hdf_eos2_oneapi
Browse files Browse the repository at this point in the history
Updates of hdf-eos2 for Intel oneAPI
  • Loading branch information
climbfuji authored Jul 23, 2024
2 parents 5d06b61 + 537a0a1 commit e77862a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions var/spack/repos/builtin/packages/hdf-eos2/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,10 @@ def fix_configure(self):

def flag_handler(self, name, flags):
if name == "cflags":
if self.spec.compiler.name == "apple-clang":
flags.append(self.compiler.cc_pic_flag)
if self.spec.compiler.name in ["apple-clang", "oneapi"]:
flags.append("-Wno-error=implicit-function-declaration")
flags.append(f"{self.compiler.cc_pic_flag}")
flags.append("-Wno-error=implicit-int")

return flags, None, None

Expand Down

0 comments on commit e77862a

Please sign in to comment.