mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-03-04 08:27:50 +00:00
[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
This commit is contained in:
parent
1850a7a9ca
commit
8c626fc0c8
@ -18,6 +18,12 @@ if (NOT LIBOMPTARGET_BUILD_DEVICERTL_BCLIB)
|
||||
return()
|
||||
endif()
|
||||
|
||||
# Check to ensure the host system is a supported host architecture.
|
||||
if(NOT ${CMAKE_SIZEOF_VOID_P} EQUAL "8")
|
||||
libomptarget_say("Not building DeviceRTL: Runtime does not support 32-bit hosts")
|
||||
return()
|
||||
endif()
|
||||
|
||||
if (LLVM_DIR)
|
||||
# Builds that use pre-installed LLVM have LLVM_DIR set.
|
||||
# A standalone or LLVM_ENABLE_RUNTIMES=openmp build takes this route
|
||||
|
Loading…
x
Reference in New Issue
Block a user