Skip to content

Commit 44f392e

Browse files
committed
[OpenMP] Fix 'libc' configuration when building OpenMP
Summary: Forgot to port this option's old handling from offload. It's not way easier since they're built in the same CMake project. Also delete the leftover directory that's not used anymore, don't know how that was still there.
1 parent b51b967 commit 44f392e

File tree

2 files changed

+1
-189
lines changed

2 files changed

+1
-189
lines changed

offload/DeviceRTL/CMakeLists.txt

Lines changed: 0 additions & 188 deletions
This file was deleted.

openmp/device/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ set_target_properties(libompdevice PROPERTIES
6464
RUNTIME_OUTPUT_NAME libomptarget-${target_name}.bc)
6565

6666
# If the user built with the GPU C library enabled we will use that instead.
67-
if(LIBOMPTARGET_GPU_LIBC_SUPPORT)
67+
if(TARGET libc)
6868
target_compile_definitions(libompdevice PRIVATE OMPTARGET_HAS_LIBC)
6969
endif()
7070
target_compile_definitions(libompdevice PRIVATE SHARED_SCRATCHPAD_SIZE=512)

0 commit comments

Comments
 (0)