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:
parent
1eb35d0378
commit
c3851704a2
1 changed files with 3 additions and 2 deletions
|
@ -382,8 +382,9 @@ def make_defs(self):
|
|||
if "+consistent_fpcsr" in self.spec:
|
||||
make_defs += ["CONSISTENT_FPCSR=1"]
|
||||
|
||||
# Flang/f18 does not provide ETIME as an intrinsic
|
||||
if self.spec.satisfies("%clang"):
|
||||
# Flang/f18 does not provide ETIME as an intrinsic.
|
||||
# Do not set TIMER variable if fortran is disabled.
|
||||
if self.spec.satisfies("+fortran%clang"):
|
||||
make_defs.append("TIMER=INT_CPU_TIME")
|
||||
|
||||
# Prevent errors in `as` assembler from newer instructions
|
||||
|
|
Loading…
Reference in a new issue