[openmp] Only try to add the -mrtm flag on i386/x86_64
authorMartin Storsjö <martin@martin.st>
Tue, 8 Nov 2022 13:31:40 +0000 (15:31 +0200)
committerMartin Storsjö <martin@martin.st>
Fri, 18 Nov 2022 06:50:26 +0000 (08:50 +0200)
commitfe287bf096c6b5fdf46b2d34590311099852abd4
tree8a58263d29e2ff4467bafad0d194c1eaf7f90f80
parent7e6dbfcd9d26a8e272823669399922e2782139c8
[openmp] Only try to add the -mrtm flag on i386/x86_64

Clang does accept the flag for any architecture, but prints a
warning:

    clang-16: warning: argument unused during compilation: '-mrtm' [-Wunused-command-line-argument]

This flag is documented as an x86 specific flag, so don't try to
add it for other architectures, to silence this warning.

Differential Revision: https://reviews.llvm.org/D137744
openmp/runtime/cmake/LibompHandleFlags.cmake