[Openmp-commits] [openmp] [OpenMP] Add libomp unit test infrastructure (PR #168063)

Robert Imschweiler via Openmp-commits openmp-commits at lists.llvm.org
Mon Nov 17 09:35:22 PST 2025


================
@@ -174,17 +174,26 @@ if(NOT WIN32)
 endif()
 
 # Add the OpenMP library
+
+# First, create an OBJECT library with all the runtime sources.
+# This allows both the main library and unit tests to link against the same compiled objects.
+add_library(omp_objects OBJECT ${LIBOMP_SOURCE_FILES})
----------------
ro-i wrote:

but isn't that being addressed by my latest commit that added the omp_testing (shared) library which the unittests are linking against?

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


More information about the Openmp-commits mailing list