hipfort: add non-system gcc support (#44612)
This commit is contained in:
parent
113e231abe
commit
b97b001dad
@ -73,5 +73,8 @@ def cmake_args(self):
|
|||||||
"-DHIPFORT_RANLIB=" + join_path(self.spec["binutils"].prefix.bin, "ranlib")
|
"-DHIPFORT_RANLIB=" + join_path(self.spec["binutils"].prefix.bin, "ranlib")
|
||||||
)
|
)
|
||||||
args.append("-DHIPFORT_COMPILER_FLAGS='-ffree -eT'")
|
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
|
return args
|
||||||
|
Loading…
Reference in New Issue
Block a user