Skip to content

Commit ab2d8f0

Browse files
jprotzetstellar
authored andcommitted
[libomptarget][amdcgn] Add build dependency for opt
This patch should fix the build we observe when building LLVM from scratch. Differential Revision: https://reviews.llvm.org/D107156 (cherry picked from commit 4ffa147)
1 parent 3020229 commit ab2d8f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openmp/libomptarget/deviceRTLs/amdgcn/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ foreach(mcpu ${mcpus})
157157
add_custom_command(
158158
OUTPUT ${bc_libname}
159159
COMMAND ${LINK_TOOL} ${bc_files} | ${OPT_TOOL} --always-inline -o ${OUTPUTDIR}/${bc_libname}
160-
DEPENDS ${bc_files})
160+
DEPENDS ${bc_files} opt)
161161

162162
add_custom_target(lib${libname}-${mcpu} ALL DEPENDS ${bc_libname})
163163

0 commit comments

Comments
 (0)