[PATCH] D40660: Enable auto-linking on Windows

2021-04-13 Thread Martin Storsjö via Phabricator via cfe-commits
mstorsjo edited subscribers, added: libcxx-commits, mstorsjo; removed: llvm-commits, cfe-commits. mstorsjo added a comment. I see that @smeenai brought up the inconsistency between `_DLL` and `_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS` already back when this was reviewed. I'm running into problems

[PATCH] D40660: Enable auto-linking on Windows

2017-12-05 Thread Saleem Abdulrasool via Phabricator via cfe-commits
compnerd closed this revision. compnerd added a comment. SVN r319816 Repository: rCXX libc++ https://reviews.llvm.org/D40660 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D40660: Enable auto-linking on Windows

2017-12-01 Thread Shoaib Meenai via Phabricator via cfe-commits
smeenai accepted this revision. smeenai added a comment. This revision is now accepted and ready to land. I think it would make sense for this change to also have the conditional for the static C++ library selection. Basically something like #if defined(_LIBCPP_ABI_MICROSOFT) && !defined(_LIBC

[PATCH] D40660: Enable auto-linking on Windows

2017-11-30 Thread Saleem Abdulrasool via Phabricator via cfe-commits
compnerd added inline comments. Comment at: include/__config:1267 +# if defined(_DLL) && !defined(_LIBCPP_BUILDING_LIBRARY) +# if defined(_LIBCPP_DEBUG) +# pragma comment(lib, "c++d.lib") smeenai wrote: > compnerd wrote: > > smeenai wrote: > > > I guess `_D

[PATCH] D40660: Enable auto-linking on Windows

2017-11-30 Thread Shoaib Meenai via Phabricator via cfe-commits
smeenai added a comment. I'm fine with future proofing, but not if it doesn't actually work in the present :) Comment at: include/__config:1267 +# if defined(_DLL) && !defined(_LIBCPP_BUILDING_LIBRARY) +# if defined(_LIBCPP_DEBUG) +# pragma comment(lib, "c++d.lib") -

[PATCH] D40660: Enable auto-linking on Windows

2017-11-30 Thread Saleem Abdulrasool via Phabricator via cfe-commits
compnerd updated this revision to Diff 124983. compnerd added a comment. @rnk/@smeenai don't want future proofing Repository: rCXX libc++ https://reviews.llvm.org/D40660 Files: include/__config Index: include/__config === --

[PATCH] D40660: Enable auto-linking on Windows

2017-11-30 Thread Saleem Abdulrasool via Phabricator via cfe-commits
compnerd added inline comments. Comment at: include/__config:1266 +#if defined(_LIBCPP_ABI_MICROSOFT) +# if defined(_DLL) && !defined(_LIBCPP_BUILDING_LIBRARY) +# if defined(_LIBCPP_DEBUG) smeenai wrote: > rnk wrote: > > smeenai wrote: > > > This feels more lik

[PATCH] D40660: Enable auto-linking on Windows

2017-11-30 Thread Shoaib Meenai via Phabricator via cfe-commits
smeenai added inline comments. Comment at: include/__config:1266 +#if defined(_LIBCPP_ABI_MICROSOFT) +# if defined(_DLL) && !defined(_LIBCPP_BUILDING_LIBRARY) +# if defined(_LIBCPP_DEBUG) rnk wrote: > smeenai wrote: > > This feels more like a Windows (or perhap

[PATCH] D40660: Enable auto-linking on Windows

2017-11-30 Thread Reid Kleckner via Phabricator via cfe-commits
rnk added inline comments. Comment at: include/__config:1266 +#if defined(_LIBCPP_ABI_MICROSOFT) +# if defined(_DLL) && !defined(_LIBCPP_BUILDING_LIBRARY) +# if defined(_LIBCPP_DEBUG) smeenai wrote: > This feels more like a Windows (or perhaps COFF) thing than

[PATCH] D40660: Enable auto-linking on Windows

2017-11-30 Thread Shoaib Meenai via Phabricator via cfe-commits
smeenai added inline comments. Comment at: include/__config:1266 +#if defined(_LIBCPP_ABI_MICROSOFT) +# if defined(_DLL) && !defined(_LIBCPP_BUILDING_LIBRARY) +# if defined(_LIBCPP_DEBUG) This feels more like a Windows (or perhaps COFF) thing than a Microsoft A

[PATCH] D40660: Enable auto-linking on Windows

2017-11-30 Thread Saleem Abdulrasool via Phabricator via cfe-commits
compnerd updated this revision to Diff 124976. compnerd added a comment. Fix pragma, ensure that we do not try to recursively link. https://reviews.llvm.org/D40660 Files: include/__config Index: include/__config === --- include

[PATCH] D40660: Enable auto-linking on Windows

2017-11-30 Thread Saleem Abdulrasool via Phabricator via cfe-commits
compnerd created this revision. Herald added a subscriber: cfe-commits. The MSVC driver and clang do not link against the C++ runtime explicitly. Instead, they rely on the auto-linking via the pragma (through `use_ansi.h`) to link against the correct version of the C++ runtime. Attempt to do som