Osman Zakir via llvm-dev
2018-Dec-16 15:53 UTC
[llvm-dev] lld-link.exe error "could not open /LTCG:incremental: no such file or directory"
I have the "/LTCG:incremental" flag turned on in VS2017 Linker options and I'm trying to build with the LLVM toolset. But I have the linker error mentioned in the title coming from lld-link.exe. Why does it think it's an input file and how do I tell it that it isn't? Note: I'm using clang-cl.exe as the compiler. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20181216/e33e7560/attachment.html>
Zachary Turner via llvm-dev
2018-Dec-16 16:07 UTC
[llvm-dev] lld-link.exe error "could not open /LTCG:incremental: no such file or directory"
Don’t pass that flag, lld-link doesn’t recognize it. If you want LTCG with llvm you need to pass -flto=thin on clang-cl, and delete the linker argument On Sun, Dec 16, 2018 at 7:54 AM Osman Zakir via llvm-dev < llvm-dev at lists.llvm.org> wrote:> I have the "/LTCG:incremental" flag turned on in VS2017 Linker options and > I'm trying to build with the LLVM toolset. But I have the linker error > mentioned in the title coming from lld-link.exe. Why does it think it's an > input file and how do I tell it that it isn't? Note: I'm using clang-cl.exe > as the compiler. > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20181216/18fb5956/attachment.html>