[libcxx-dev] dllimport vs inline methods in MSVC mode/clang-cl

Martin Storsjö via libcxx-dev libcxx-dev at lists.llvm.org
Mon Nov 2 06:06:37 PST 2020


On Mon, 2 Nov 2020, Nico Weber wrote:

> I think this is basically https://bugs.llvm.org/show_bug.cgi?id=41018 ,
> which just needs fixing.

Thanks! That's indeed exactly the issue I'm observing, with lots of 
to-the-point commentery.

> Building libc++ with dllexportInlines- might also work(https://blog.llvm.org/2018/11/30-faster-windows-builds-with-clang-cl_14.ht
> ml).

In this case, it's the callers that need to be built with that flag, not 
the lib itself. But yeah, that's probably the best workaround for now.

// Martin

More information about the libcxx-dev mailing list