File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -54,8 +54,10 @@ macro(enable_cuda_compilation name files)
54
54
# When using libcudacxx headers files, we have to use them
55
55
# for all files of Flang-RT.
56
56
if (EXISTS "${FLANG_RT_LIBCUDACXX_PATH} /include" )
57
- target_include_directories (obj.${name}PTX AFTER PRIVATE "${FLANG_RT_LIBCUDACXX_PATH} /include" )
58
- target_compile_definitions (obj.${name}PTX PRIVATE RT_USE_LIBCUDACXX=1 )
57
+ foreach (tgt IN ITEMS "${name} " "obj.${name} PTX" )
58
+ target_include_directories (${tgt} AFTER PRIVATE "${FLANG_RT_LIBCUDACXX_PATH} /include" )
59
+ target_compile_definitions (${tgt} PRIVATE RT_USE_LIBCUDACXX=1 )
60
+ endforeach ()
59
61
endif ()
60
62
endif ()
61
63
endmacro ()
Original file line number Diff line number Diff line change @@ -134,8 +134,8 @@ if (NOT WIN32)
134
134
ADDITIONAL_HEADERS ${public_headers} ${private_headers}
135
135
)
136
136
137
- enable_cuda_compilation (flang_rt.static "${supported_sources} " )
138
- enable_omp_offload_compilation (flang_rt.static "${supported_sources} " )
137
+ enable_cuda_compilation (flang_rt "${supported_sources} " )
138
+ enable_omp_offload_compilation (flang_rt "${supported_sources} " )
139
139
140
140
# For unittests that depend on flang_rt. Should link to the static version
141
141
# of the library.
You can’t perform that action at this time.
0 commit comments