[Openmp-commits] [PATCH] D111983: [libomptarget][DeviceRTL] Generalise and simplify cmakelists
Jon Chesterfield via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Mon Oct 18 04:26:57 PDT 2021
JonChesterfield added inline comments.
================
Comment at: openmp/libomptarget/DeviceRTL/CMakeLists.txt:142
add_custom_target(omptarget-new-nvptx-bc)
add_dependencies(omptarget-new-nvptx-bc opt llvm-link)
----------------
^ this looks wrong, can anyone confirm?
I think it says that the target of all bitcode libraries depends on opt and llvm-link, however each of the libraries already depends on opt and llvm-link, using code that carefully only adds that dependency if they're part of the build.
If I'm reading this right, this line:
> add_dependencies(omptarget-new-nvptx-bc opt llvm-link)
is redundant in the best case and will break the build in the worst case
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