As a general rule, lld-link is command line compatible with MSVC and clang-cl is command line compatible with cl. So, the /order option should work exactly the same with lld-link as it does with link.
On Thu, Jun 7, 2018 at 7:00 AM Aleksandr Urakov via Phabricator < revi...@reviews.llvm.org> wrote: > aleksandr.urakov added a comment. > > > Function level linking is a compiler feature, not a linker feature. > It's enabled via the /Gy option in the compiler and causes the compiler to > put each function into its own COMDAT. The linker can then use this to > discard more functions (e.g. during /OPT:REF). > > > > clang-cl also supports the /Gy option, right? > > Yes, you are right. Sorry, I didn't know about such option in clang and > googling by 'clang function-level linking' didn't show me any relevant > information. > > But Pavel have prompted me Microsoft linker's option '/ORDER', and it is > always possible to reproduce the problem with it. Without that option it > was very difficult to reproduce. Has lld some analog? > > > https://reviews.llvm.org/D47708 > > > >
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits