[PATCH] D102684: [LLD] Allow disabling the early exit codepath as a build configuration

Mateusz MikuĊ‚a via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 21 10:25:10 PDT 2021


mati865 added a comment.

FWIW at MSYS2 we build LLVM with both GNU and LLVM toolchains for different "subsystems".
GNU's LLD was deadlocking a lot so we have patched it to use `TerminateProcess` and it worked around all deadlocks except when running tests (the patch probably needs more work on it), we don't apply it for LLVM's LLD because I thought it's a bit overkill.

IIRC `ExitProcess` was not enough but this is caused by GCC emutls bug so I don't think this configuration should be considered here.

The patch: https://github.com/msys2/MINGW-packages/blob/847e7c0cca7997d8f1b106b6df47825ece22d835/mingw-w64-clang/0305-use-TerminateProcess-instead-of-exit.patch


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D102684/new/

https://reviews.llvm.org/D102684



More information about the llvm-commits mailing list