[Openmp-commits] [openmp] [OpenMP] Allow building shared and static libomp together (PR #208721)

Michael Kruse via Openmp-commits openmp-commits at lists.llvm.org
Mon Jul 13 07:13:43 PDT 2026


Meinersbur wrote:

Usually in LLVM this is abstract away in the add_*_library calls:

https://github.com/llvm/llvm-project/blob/ac370b8e838ada3dd482560c4b8a568e760f95b5/flang-rt/cmake/modules/AddFlangRT.cmake#L14-L17
 
https://github.com/llvm/llvm-project/blob/ac370b8e838ada3dd482560c4b8a568e760f95b5/llvm/cmake/modules/AddLLVM.cmake#L558-L560

Keeping `LIBOMP_BUILD_SHARED_AND_STATIC`-builds consistent with only-SHARED or only-STATIC builds will be a maintanance nightmare.

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


More information about the Openmp-commits mailing list