make TIMER compatible with LLVM F18 (#19765)

This commit is contained in:
eugeneswalker 2020-11-06 19:11:13 -08:00 committed by GitHub
parent 381305da0f
commit fbc7cefcf7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -260,6 +260,10 @@ 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'):
make_defs.append('TIMER=INT_CPU_TIME')
# Prevent errors in `as` assembler from newer instructions
if self.spec.satisfies('%gcc@:4.8.4'):
make_defs.append('NO_AVX2=1')