llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
29.07k stars 11.99k forks source link

[OpenMP] Inquiry on Resolving Static Library Support for libomp #115997

Open tuxzz opened 1 day ago

tuxzz commented 1 day ago

I understand that building a static version of libomp (LLVM's OpenMP runtime) on Windows is a known issue, and I'm interested in addressing this limitation.

I would like to understand the primary challenges that currently prevent static linking of libomp on Windows. Additionally, I seek guidance on where to begin if I were to work on enabling static linking support for OpenMP on this platform.

llvmbot commented 1 day ago

@llvm/issue-subscribers-openmp

Author: tux (tuxzz)

I understand that building a static version of libomp (LLVM's OpenMP runtime) on Windows is a known issue, and I'm interested in addressing this limitation. I would like to understand the primary challenges that currently prevent static linking of libomp on Windows. Additionally, I seek guidance on where to begin if I were to work on enabling static linking support for OpenMP on this platform.
tuxzz commented 1 day ago

I have resolved the obstacles to building a static version of libomp on Windows (with clang-cl and cl.exe), and it seems to be working correctly. However, since the README explicitly states that static libraries are not supported on Windows, I am concerned that there might be known issues (which I may not be aware of). I hope someone familiar with these challenges can provide an explanation.

shiltian commented 17 hours ago

@TerryLWilmarth could you please give some thoughts?