[Openmp-commits] [openmp] [OpenMP] Add libomp unit test infrastructure (PR #168063)
Michael Kruse via Openmp-commits
openmp-commits at lists.llvm.org
Fri Jan 9 06:24:49 PST 2026
================
@@ -6,6 +6,22 @@ if(WIN32 OR STUBS_LIBRARY)
return()
endif()
+# Make the targets default_gtest and default_gtest_main available.
+if (OPENMP_STANDALONE_BUILD)
+ set(LLVM_RUNTIMES_BUILD 1)
----------------
Meinersbur wrote:
unset `LLVM_RUNTIMES_BUILD` after this again?, since it is not a runtimes build. Coud be done most elegantly by warpping this code into a function, so LLVM_RUNTIMES_BUILD is only set in its scope.
Also consider adding a comment in the sense of:
```cmake
# LLVM_RUNTIMES_BUILD avoids gtest to link to LLVMSupport, which might be incompable with the platform libomp is compiled for.
set(LLVM_RUNTIMES_BUILD 1)
```
https://github.com/llvm/llvm-project/pull/168063
More information about the Openmp-commits
mailing list