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

Shilei Tian via Openmp-commits openmp-commits at lists.llvm.org
Mon Nov 17 08:22:08 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})
----------------
shiltian wrote:

> Afaiu, the original libomp is completely unaffected by my changes (this is very important ofc)

I understand your PR would change that, but my point is, what the unittest will be testing is not how `libomp` is really used.

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


More information about the Openmp-commits mailing list