<div dir="ltr">I read through the issue again, and I think this isn't as bad as I thought it was last year. I responded on the bug (<a href="https://bugs.llvm.org/show_bug.cgi?id=41226#c16">https://bugs.llvm.org/show_bug.cgi?id=41226#c16</a>). I think the solution is going to be to call MarkFunctionReferenced (ODR use) for all the builtins that MSVC doesn't provide out of line definitions for.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Oct 19, 2020 at 9:55 AM Tobias Hieta via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">Hello. <div dir="auto"><br></div><div dir="auto">We are trying to adopt clang-cl on windows and migrate to C++17, but that configuration leads to the error described in this bug: <a href="https://bugs.llvm.org/show_bug.cgi?id=41226" target="_blank">https://bugs.llvm.org/show_bug.cgi?id=41226</a></div><div dir="auto"><br></div><div dir="auto">Does anyone know what can be done to fix this? Either in LLVM or in my code. I am happy to try to provide a patch but I don't exactly understand what's going wrong. </div><div dir="auto"><br></div><div dir="auto">Thanks,</div><div dir="auto">Tobias. </div></div>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div>