[Openmp-commits] [PATCH] D46842: [OpenMP][libomptarget] Make bitcode library building depend on clang and llvm-linker being available

Gheorghe-Teodor Bercea via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Mon May 14 12:57:09 PDT 2018


gtbercea created this revision.
gtbercea added reviewers: ABataev, grokos, carlo.bertolli, caomhin.
Herald added subscribers: openmp-commits, guansong, mgorny.

To build the bitcode library with newly built compiler, insert dependencies on Clang and the llvm linker.


Repository:
  rOMP OpenMP

https://reviews.llvm.org/D46842

Files:
  libomptarget/deviceRTLs/nvptx/CMakeLists.txt


Index: libomptarget/deviceRTLs/nvptx/CMakeLists.txt
===================================================================
--- libomptarget/deviceRTLs/nvptx/CMakeLists.txt
+++ libomptarget/deviceRTLs/nvptx/CMakeLists.txt
@@ -180,7 +180,7 @@
           add_custom_command(OUTPUT ${outfile}-sm_${sm}.bc
             COMMAND ${LIBOMPTARGET_NVPTX_SELECTED_CUDA_COMPILER} ${CUDA_FLAGS} ${CUDA_ARCH} ${CUDA_INCLUDES}
               -c ${infile} -o ${outfile}-sm_${sm}.bc
-            DEPENDS ${infile}
+            DEPENDS ${infile} ${LIBOMPTARGET_NVPTX_SELECTED_CUDA_COMPILER}
             IMPLICIT_DEPENDS CXX ${infile}
             COMMENT "Building LLVM bitcode ${outfile}-sm_${sm}.bc"
             VERBATIM
@@ -194,7 +194,7 @@
         add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/libomptarget-nvptx-sm_${sm}.bc
             COMMAND ${LIBOMPTARGET_NVPTX_SELECTED_BC_LINKER}
               -o ${CMAKE_CURRENT_BINARY_DIR}/libomptarget-nvptx-sm_${sm}.bc ${bc_files}
-            DEPENDS ${bc_files}
+            DEPENDS ${bc_files} ${LIBOMPTARGET_NVPTX_SELECTED_BC_LINKER}
             COMMENT "Linking LLVM bitcode libomptarget-nvptx-sm_${sm}.bc"
         )
         set_property(DIRECTORY APPEND PROPERTY ADDITIONAL_MAKE_CLEAN_FILES libomptarget-nvptx-sm_${sm}.bc)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46842.146661.patch
Type: text/x-patch
Size: 1269 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20180514/08b09df3/attachment.bin>


More information about the Openmp-commits mailing list