diff --git a/openmp/CMakeLists.txt b/openmp/CMakeLists.txt --- a/openmp/CMakeLists.txt +++ b/openmp/CMakeLists.txt @@ -61,10 +61,15 @@ set(ENABLE_LIBOMPTARGET OFF) endif() +set(ENABLE_LIBOMPTARGET_PROFILING OFF) +if (ENABLE_LIBOMPTARGET AND NOT LLVM_RUNTIMES_BUILD) + set(ENABLE_LIBOMPTARGET_PROFILING ON) +endif() + option(OPENMP_ENABLE_LIBOMPTARGET "Enable building libomptarget for offloading." ${ENABLE_LIBOMPTARGET}) option(OPENMP_ENABLE_LIBOMPTARGET_PROFILING "Enable time profiling for libomptarget." - ${ENABLE_LIBOMPTARGET}) + ${ENABLE_LIBOMPTARGET_PROFILING}) option(OPENMP_ENABLE_LIBOMP_PROFILING "Enable time profiling for libomp." OFF) # Build host runtime library, after LIBOMPTARGET variables are set since they are needed