[libcxx-commits] [libcxx] r362061 - [runtimes] Use _LIBCPP_HAS_COMMENT_LIB_PRAGMA in all relevant files

Petr Hosek via libcxx-commits libcxx-commits at lists.llvm.org
Wed May 29 23:57:27 PDT 2019


Author: phosek
Date: Wed May 29 23:57:27 2019
New Revision: 362061

URL: http://llvm.org/viewvc/llvm-project?rev=362061&view=rev
Log:
[runtimes] Use _LIBCPP_HAS_COMMENT_LIB_PRAGMA in all relevant files

These two sources were omitted in r362055.

Modified:
    libcxx/trunk/src/condition_variable.cpp
    libcxx/trunk/src/memory.cpp

Modified: libcxx/trunk/src/condition_variable.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/src/condition_variable.cpp?rev=362061&r1=362060&r2=362061&view=diff
==============================================================================
--- libcxx/trunk/src/condition_variable.cpp (original)
+++ libcxx/trunk/src/condition_variable.cpp Wed May 29 23:57:27 2019
@@ -15,7 +15,7 @@
 #include "system_error"
 #include "__undef_macros"
 
-#if defined(__unix__) &&  defined(__ELF__) && defined(__clang__)
+#if defined(__unix__) &&  defined(__ELF__) && defined(_LIBCPP_HAS_COMMENT_LIB_PRAGMA)
 #pragma comment(lib, "pthread")
 #endif
 

Modified: libcxx/trunk/src/memory.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/src/memory.cpp?rev=362061&r1=362060&r2=362061&view=diff
==============================================================================
--- libcxx/trunk/src/memory.cpp (original)
+++ libcxx/trunk/src/memory.cpp Wed May 29 23:57:27 2019
@@ -10,7 +10,7 @@
 #ifndef _LIBCPP_HAS_NO_THREADS
 #include "mutex"
 #include "thread"
-#if defined(__unix__) &&  defined(__ELF__) && defined(__clang__)
+#if defined(__unix__) &&  defined(__ELF__) && defined(_LIBCPP_HAS_COMMENT_LIB_PRAGMA)
 #pragma comment(lib, "pthread")
 #endif
 #endif




More information about the libcxx-commits mailing list