[all-commits] [llvm/llvm-project] 4bb36d: [libomptarget][amdcgn] Add build dependency for ll...

Joachim via All-commits all-commits at lists.llvm.org
Thu Aug 19 16:59:03 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4bb36df144127c5bee6ea2607bc544c003aae446
      https://github.com/llvm/llvm-project/commit/4bb36df144127c5bee6ea2607bc544c003aae446
  Author: Joachim Protze <protze at itc.rwth-aachen.de>
  Date:   2021-08-20 (Fri, 20 Aug 2021)

  Changed paths:
    M llvm/runtimes/CMakeLists.txt
    M openmp/libomptarget/DeviceRTL/CMakeLists.txt
    M openmp/libomptarget/deviceRTLs/amdgcn/CMakeLists.txt

  Log Message:
  -----------
  [libomptarget][amdcgn] Add build dependency for llvm-link and opt

D107156 and D107320 are not sufficient when OpenMP is built as llvm runtime
(LLVM_ENABLE_RUNTIMES=openmp) because dependencies only work within the same
cmake instance.

We could limit the dependency to cases where libomptarget/plugins are really
built. But compared to the whole llvm project, building openmp runtime is
negligible and postponing the build of OpenMP runtime after the dependencies
are ready seems reasonable.

The direct dependency introduced in D107156 and D107320 is necessary for the
case where OpenMP is built as llvm project (LLVM_ENABLE_PROJECTS=openmp).

Differential Revision: https://reviews.llvm.org/D108404




More information about the All-commits mailing list