hipfort: add non-system gcc support (#44612)

This commit is contained in:
Nick Hagerty 2024-06-20 07:45:18 -04:00 committed by GitHub
parent 113e231abe
commit b97b001dad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -73,5 +73,8 @@ def cmake_args(self):
"-DHIPFORT_RANLIB=" + join_path(self.spec["binutils"].prefix.bin, "ranlib")
)
args.append("-DHIPFORT_COMPILER_FLAGS='-ffree -eT'")
elif self.spec.satisfies("%gcc"):
args.append("-DHIPFORT_COMPILER={}".format(spack_fc))
args.append("-DHIPFORT_COMPILER_FLAGS='-ffree-form -cpp -ffree-line-length-none'")
return args