From: Petr Hosek Date: Thu, 30 May 2019 06:57:27 +0000 (+0000) Subject: [runtimes] Use _LIBCPP_HAS_COMMENT_LIB_PRAGMA in all relevant files X-Git-Tag: llvmorg-10-init~4243 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b19977d5afbff801b3228d89b14147397a935ffe;p=platform%2Fupstream%2Fllvm.git [runtimes] Use _LIBCPP_HAS_COMMENT_LIB_PRAGMA in all relevant files These two sources were omitted in r362055. llvm-svn: 362061 --- diff --git a/libcxx/src/condition_variable.cpp b/libcxx/src/condition_variable.cpp index 69264c6..8d769f4 100644 --- a/libcxx/src/condition_variable.cpp +++ b/libcxx/src/condition_variable.cpp @@ -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 diff --git a/libcxx/src/memory.cpp b/libcxx/src/memory.cpp index 6df7226..c8c0038 100644 --- a/libcxx/src/memory.cpp +++ b/libcxx/src/memory.cpp @@ -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