Skip to content

Commit d397751

Browse files
authored
[flang-rt] Set supported_sources when FLANG_RT_EXPERIMENTAL_OFFLOAD_SUPPORT=CUDA (#156078)
When building for the CUDA support sources should be set to the gpu sources.
1 parent 806a797 commit d397751

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

flang-rt/lib/runtime/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,8 @@ endif ()
177177

178178
if ("${LLVM_RUNTIMES_TARGET}" MATCHES "^amdgcn|^nvptx")
179179
set(sources ${gpu_sources})
180+
elseif(FLANG_RT_EXPERIMENTAL_OFFLOAD_SUPPORT STREQUAL "CUDA")
181+
set(sources ${supported_sources})
180182
else ()
181183
set(sources ${supported_sources} ${host_sources} ${f128_sources})
182184
endif ()

0 commit comments

Comments
 (0)