On Wednesday, 19 January 2022 at 13:03:11 UTC, kinke wrote:
Hi; LTO with lld for ELF targets has just been fixed in master,
after v1.28.1. Without `-betterC` at least, not sure if
`-betterC` was affected too in some way.
Bumping LLVM to v13 wasn't trivial this time. There's
https://github.com/ldc-developers/ldc/pull/3842 using an LLVM
v13.0.1-rc2+, which fixed serious issues we've had with the
gold linker (lld v13 was fine). You can download that CI
artifact (with enabled assertions) and give it a try to see if
it works for you:
https://dev.azure.com/ldc-developers/ldc/_build/results?buildId=3243&view=artifacts&pathAsName=false&type=publishedArtifacts
Thanks for the kind reply.
This azure download link work for me very well, with LTO or
without LTO, the project build and run without problem.