Skip to content

[flang-rt] support FLANG_RT_ENABLE_SHARED=ON on windows #134186

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
h-vetinari opened this issue Apr 3, 2025 · 2 comments
Open

[flang-rt] support FLANG_RT_ENABLE_SHARED=ON on windows #134186

h-vetinari opened this issue Apr 3, 2025 · 2 comments

Comments

@h-vetinari
Copy link
Contributor

#121782 added support for FLANG_RT_ENABLE_SHARED=ON, except on windows, which currently has

option(FLANG_RT_ENABLE_STATIC "Build Flang-RT as a static library." ON)
if (WIN32)
# Windows DLL currently not implemented.
set(FLANG_RT_ENABLE_SHARED OFF)

Opening this issue for tracking, and for having an easy reference to point to.

@llvmbot
Copy link
Member

llvmbot commented Apr 3, 2025

@llvm/issue-subscribers-flang-runtime

Author: None (h-vetinari)

https://github.com//pull/121782 added support for `FLANG_RT_ENABLE_SHARED=ON`, except on windows, which currently has

option(FLANG_RT_ENABLE_STATIC "Build Flang-RT as a static library." ON)
if (WIN32)
# Windows DLL currently not implemented.
set(FLANG_RT_ENABLE_SHARED OFF)

Opening this issue for tracking, and for having an easy reference to point to.

@Meinersbur
Copy link
Member

For Windows support, will need to add __declspec(dllexport) to visible functions, or (better for ABI stability) a .def file like OpenMP's dllexports

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants