Skip to content

Commit 817af2d

Browse files
authored
[Offload] Fix missing dependencies in Offload API generation (#142776)
Thanks to @RossBrunton for spotting this. We attempt to clang-format the generated Offload header files, but if clang-format isn't available we just copy the generated files instead. That fallback path was missing the correct dependencies. Fixes #142756
1 parent c3746ff commit 817af2d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

offload/liboffload/API/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,7 @@ else()
4242
COMMAND ${CMAKE_COMMAND} -E copy_if_different generated/${file}.gen ${CMAKE_CURRENT_BINARY_DIR}/${file}
4343
DEPENDS generated/${file}.gen
4444
)
45+
add_custom_target(OffloadAPI.${file} DEPENDS ${file})
46+
add_dependencies(OffloadAPI OffloadAPI.${file})
4547
endforeach()
4648
endif()

0 commit comments

Comments
 (0)