lhmouse / mcfgthread

Cornerstone of the MOST efficient std::thread on Windows for mingw-w64
https://gcc-mcf.lhmouse.com/
Other
277 stars 28 forks source link

用mcf线程模型本地或加拿大编译出来的lld (LLVM的链接器)不能用-flto=thin #68

Closed trcrsired closed 2 years ago

trcrsired commented 2 years ago

thin lto不知道为何不能用。换posix的就行。你去修一下吧。

lhmouse commented 2 years ago

Did you read https://github.com/lhmouse/mcfgthread#notes ?

Or patch the CRT yourself: https://github.com/lhmouse/mcfgthread/blob/5094283b3165037c7d70a0f93cbc90f5b2b4828e/patches/mingw-w64-10.0.patch#L136

mcfgthread requires the fflush() function be called after user-defined exit callbacks (so it has to be registered before __main()), otherwise data in standard output may be truncated upon exit.

lhmouse commented 2 years ago

As there was no further feedback I am closing this as WONTFIX.