[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 09:37:59 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:

well, probably I should use "was" instead of "is". :-D

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


More information about the Openmp-commits mailing list