[Libomptarget] Reintroduce host architecture checks for device RTL
authorJoseph Huber <jhuber6@vols.utk.edu>
Mon, 25 Jul 2022 19:16:06 +0000 (15:16 -0400)
committerJoseph Huber <jhuber6@vols.utk.edu>
Mon, 25 Jul 2022 21:01:12 +0000 (17:01 -0400)
commit8c626fc0c8a904c0040a36561edd9b62ac3b71b4
tree4d296a095adb8dd8ee1e36f8a56c1e5fdb6ef420
parent1850a7a9ca355d8edcf80e24cdd4bb6522990664
[Libomptarget] Reintroduce host architecture checks for device RTL

A previous patch removed the need to set the auxiliary architecture as
it was no longer needed for the clang invocation after moving to using
the clang frontend. However, this had a second use of preventing
unsupported host architectures from building the device runtime. This
caused failures when trying to build on 32-bit hosts for example.

Fixes #56699

Reviewed By: tianshilei1992

Differential Revision: https://reviews.llvm.org/D130509
openmp/libomptarget/DeviceRTL/CMakeLists.txt