Closed yujincheng08 closed 2 weeks ago
We use this fiction for mold -run
, but the first of not supported on Windows, so we don't need the code for it.
well, i am trying to make mold support lto on msys: https://github.com/yujincheng08/MINGW-packages/commit/8ff0e682a1596db1fbb3df638dbcc49fdfaf7450 and this is one of the patch so I wonder if it can be somehow merged by upstream.
it compiles at least (but there's an error of mutex when trying to use).
Then can you send me PR once the feature is ready?
So, are you trying to cross build Linux binaries on msys on Windows?
@rui314 sure I am more than happy to PR this. And yes I am cross-compiling Linux binaries on msys on windows.
You are right. This is because the is_llvm
check has failed so lto tries to restart_process
which involves this. So this PR is not needed.
On windows, calling
read_symlink
will throw an exception.