[Openmp-commits] [llvm] [openmp] [Offload] Move `/openmp/libomptarget` to `/offload` (PR #75125)

Joseph Huber via Openmp-commits openmp-commits at lists.llvm.org
Mon Apr 29 16:38:35 PDT 2024


================
@@ -113,7 +113,17 @@ option(OPENMP_ENABLE_LIBOMP_PROFILING "Enable time profiling for libomp." OFF)
 
 # Header install location
 if(${OPENMP_STANDALONE_BUILD})
-  set(LIBOMP_HEADERS_INSTALL_PATH "${CMAKE_INSTALL_INCLUDEDIR}")
+  if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
+    execute_process(
+      OUTPUT_STRIP_TRAILING_WHITESPACE
+      COMMAND ${CMAKE_CXX_COMPILER} --print-resource-dir
+      RESULT_VARIABLE COMMAND_RETURN_CODE
+      OUTPUT_VARIABLE COMPILER_RESOURCE_DIR
+    )
+    set(LIBOMP_HEADERS_INSTALL_PATH "${COMPILER_RESOURCE_DIR}/include")
----------------
jhuber6 wrote:

Yeah that's definitely wrong for a standalone build. For a runtimes build it's so we install it in a place where the compiler can find it so `./bin/clang` actually works. We'll need to fix a lot of this.

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


More information about the Openmp-commits mailing list