[llvm-dev] lld-link.exe error "could not open /LTCG:incremental: no such file or directory"
Zachary Turner via llvm-dev
llvm-dev at lists.llvm.org
Sun Dec 16 08:07:58 PST 2018
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>
More information about the llvm-dev
mailing list