You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That's an interesting question. I've never thought of that before, but we can indeed fall back to GNU ld or LLVM lld if LTO is in use. We can just invoke these linkers with the exact same command line arguments as mold received.
There are a few concerns, though:
It may be "too automatic". If a user is using mold, it is their intentional choice. Automatic fallback may not desirable for them.
It could change the link result in an edge case, as mold, GNU ld and LLVM lld all behave slightly differently in edge cases. That should be very rare, though.
But automatic fallback is an attractive idea... Let me think about that more.
OK, I decided to implement automatic fallback. We should support LTO natively in the future, but in the meantime, this should work as a poor-man's replacement.
Hi,
I was wondering if there was any way to not fail if LTO is in use, but just fallback to what it would be without mold?
Thanks
The text was updated successfully, but these errors were encountered: