[Openmp-commits] [PATCH] D111983: [libomptarget][DeviceRTL] Generalise and simplify cmakelists

Michael Kruse via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Fri Oct 22 11:06:50 PDT 2021


Meinersbur added inline comments.


================
Comment at: openmp/libomptarget/DeviceRTL/CMakeLists.txt:195
+  # By default, add_custom_command only builds the tool if the executable is missing
+  if("${LINK_TOOL}" STREQUAL "$<TARGET_FILE:llvm-link>")
+    add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${bclib_name}
----------------
JonChesterfield wrote:
> Is this stuff not here to work around opt / llvm-link sometimes not being targets?
Mostly to only add a dependency only when configured to use in-tree llvm-link/opt. `llvm-link` os a target in both, the LLVM_ENABLE_PROJECTS and LLVM_ENABLE_RUNTIMES (an "import target" from `find_package(LLVM)`) build. 


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D111983/new/

https://reviews.llvm.org/D111983



More information about the Openmp-commits mailing list