[Openmp-commits] [llvm] [openmp] [OpenMP][Offload] Support standalone build (PR #88957)

Joseph Huber via Openmp-commits openmp-commits at lists.llvm.org
Wed Apr 17 06:17:02 PDT 2024


================
@@ -35,11 +42,12 @@ endif()
 # TODO: Leftover from the move, could probably be just LLVM_LIBDIR_SUFFIX everywhere.
 set(OFFLOAD_INSTALL_LIBDIR "lib${LLVM_LIBDIR_SUFFIX}")
 
-set(LLVM_COMMON_CMAKE_UTILS ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
+set(LLVM_COMMON_CMAKE_UTILS ${CMAKE_CURRENT_SOURCE_DIR}/../cmake)
----------------
jhuber6 wrote:

This doesn't make sense to me, the whole point of a standalone build is that it's separate from LLVM, which would mean that this is the top level directory in the tree. Why are we just assuming that the LLVM modules directory is there?

I don't think putting this module stuff is necessary since we can just make the users pass in `OMPTARGET_OMPT_ENABLED` or something.

https://github.com/llvm/llvm-project/pull/88957


More information about the Openmp-commits mailing list