This repository has been archived by the owner on Feb 8, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LDC: Add core.exception TLS workaround for Windows druntime DLL
This works around the single remaining Phobos DLL linking error (somehow only required for debug Phobos), by replacing direct access to a little TLS buffer with a non-inlineable call to an accessor function (exported by druntime DLL and imported by other DLLs/executables instantiating the `staticError` template), on Windows in general. We cannot restrict this to `version(Shared)`, because that is set when compiling druntime, but what matters are `staticError` instantiations in other code.
- Loading branch information