[llvm] [flang-rt] Disable host-side offload support when offload is disabled (PR #207998)

David Truby via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 7 07:29:42 PDT 2026


DavidTruby wrote:

Is there a different CMake flag we should be using to determine if offload is enabled? `FLANG_RT_EXPERIMENTAL_OFFLOAD_SUPPORT` would appear to be the currently documented one.

I don't think there's an easy way to just fix it in the sources in the general case; the current Windows workaround is using an undocumented flag that isn't supported on all Windows platforms, and the alternative weak linking used on other platforms doesn't work on Windows. We may also hit this on other platforms that don't have a similar approach to weak linking as Linux so I think it's best to delete the support somehow when it's not needed. 

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


More information about the llvm-commits mailing list