openblas confuses flang/flang-new, so do not set TIME with ~fortran (#33163)

Co-authored-by: Harmen Stoppels <harmenstoppels@gmail.com>
Co-authored-by: eugeneswalker <38933153+eugeneswalker@users.noreply.github.com>
This commit is contained in:
Sajid Ali 2022-11-07 09:20:03 -06:00 committed by GitHub
parent 1eb35d0378
commit c3851704a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -382,8 +382,9 @@ def make_defs(self):
if "+consistent_fpcsr" in self.spec: if "+consistent_fpcsr" in self.spec:
make_defs += ["CONSISTENT_FPCSR=1"] make_defs += ["CONSISTENT_FPCSR=1"]
# Flang/f18 does not provide ETIME as an intrinsic # Flang/f18 does not provide ETIME as an intrinsic.
if self.spec.satisfies("%clang"): # Do not set TIMER variable if fortran is disabled.
if self.spec.satisfies("+fortran%clang"):
make_defs.append("TIMER=INT_CPU_TIME") make_defs.append("TIMER=INT_CPU_TIME")
# Prevent errors in `as` assembler from newer instructions # Prevent errors in `as` assembler from newer instructions