[PATCH] D101479: [Driver] Support libc++ in MSVC

Nico Weber via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon May 3 07:52:11 PDT 2021


thakis added a comment.

In D101479#2733354 <https://reviews.llvm.org/D101479#2733354>, @mstorsjo wrote:

> Not sure if we want the desicion between static and shared libc++ be coupled with `/MT` and `/MD`, as one can quite plausibly want to use e.g. a static libc++ with `/MD`.

Right, I meant more "how do users pick if they want a statically or dynamically linked libc++". Sounds like you get a dynamic libc++ by default. Since Windows doesn't have rpaths afaik, using `-stdlib=libc++` means you'll get an executable that won't start, unless you know to copy the libc++ dll next to your executable with this patch as-is, yes?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D101479/new/

https://reviews.llvm.org/D101479



More information about the cfe-commits mailing list