[libcxx] r321937 - Correct mistake in pragma usage for Windows
Saleem Abdulrasool via cfe-commits
cfe-commits at lists.llvm.org
Sat Jan 6 10:47:04 PST 2018
Author: compnerd
Date: Sat Jan 6 10:47:03 2018
New Revision: 321937
URL: http://llvm.org/viewvc/llvm-project?rev=321937&view=rev
Log:
Correct mistake in pragma usage for Windows
The autolink pragma was missing the pragma name itself. This would
result in the pragma being silently dropped.
Modified:
libcxx/trunk/include/__config
Modified: libcxx/trunk/include/__config
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/__config?rev=321937&r1=321936&r2=321937&view=diff
==============================================================================
--- libcxx/trunk/include/__config (original)
+++ libcxx/trunk/include/__config Sat Jan 6 10:47:03 2018
@@ -1278,9 +1278,9 @@ _LIBCPP_FUNC_VIS extern "C" void __sanit
#if defined(_LIBCPP_ABI_MICROSOFT) && !defined(_LIBCPP_BUILDING_LIBRARY)
# if defined(_DLL)
-# pragma(lib, "c++.lib")
+# pragma comment(lib, "c++.lib")
# else
-# pragma(lib, "libc++.lib")
+# pragma comment(lib, "libc++.lib")
# endif
#endif // defined(_LIBCPP_ABI_MICROSOFT) && !defined(_LIBCPP_BUILDING_LIBRARY)
More information about the cfe-commits
mailing list