[Openmp-commits] [openmp] 4ffa147 - [libomptarget][amdcgn] Add build dependency for opt

Joachim Protze via Openmp-commits openmp-commits at lists.llvm.org
Fri Jul 30 06:45:28 PDT 2021


Author: Joachim Protze
Date: 2021-07-30T15:45:13+02:00
New Revision: 4ffa1478fd1bbfdea9382786c0afc4e1303bbd06

URL: https://github.com/llvm/llvm-project/commit/4ffa1478fd1bbfdea9382786c0afc4e1303bbd06
DIFF: https://github.com/llvm/llvm-project/commit/4ffa1478fd1bbfdea9382786c0afc4e1303bbd06.diff

LOG: [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

Added: 
    

Modified: 
    openmp/libomptarget/deviceRTLs/amdgcn/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/openmp/libomptarget/deviceRTLs/amdgcn/CMakeLists.txt b/openmp/libomptarget/deviceRTLs/amdgcn/CMakeLists.txt
index 903c8d9ec8315..5bd0ed72ca1f6 100644
--- a/openmp/libomptarget/deviceRTLs/amdgcn/CMakeLists.txt
+++ b/openmp/libomptarget/deviceRTLs/amdgcn/CMakeLists.txt
@@ -157,7 +157,7 @@ foreach(mcpu ${mcpus})
   add_custom_command(
     OUTPUT ${bc_libname}
     COMMAND ${LINK_TOOL} ${bc_files} | ${OPT_TOOL} --always-inline -o ${OUTPUTDIR}/${bc_libname}
-    DEPENDS ${bc_files})
+    DEPENDS ${bc_files} opt)
 
   add_custom_target(lib${libname}-${mcpu} ALL DEPENDS ${bc_libname})
 


        


More information about the Openmp-commits mailing list