summaryrefslogtreecommitdiffstats
path: root/libcxx/src/filesystem/operations.cpp
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2019-12-02 11:49:20 +0100
committerMichał Górny <mgorny@gentoo.org>2019-12-02 22:19:20 +0100
commita9b5fff591d462f1f22e44ab1a269b82b8f2a664 (patch)
tree6b8ca9fb84e454c2def732d1a6434c0b8e57778e /libcxx/src/filesystem/operations.cpp
parent93f77617abba512d2861e2fc50ce385883f587b6 (diff)
downloadbcm5719-llvm-a9b5fff591d462f1f22e44ab1a269b82b8f2a664.tar.gz
bcm5719-llvm-a9b5fff591d462f1f22e44ab1a269b82b8f2a664.zip
[libcxx{,abi}] Emit deplibs only when detected by CMake
This is a followup to 35bc5276ca3. It fixes the dependent libs usage in libcxx and libcxxabi to link pthread and rt libraries only if CMake detects them, rather than based on explicit platform blacklist. Differential Revision: https://reviews.llvm.org/D70888
Diffstat (limited to 'libcxx/src/filesystem/operations.cpp')
-rw-r--r--libcxx/src/filesystem/operations.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/src/filesystem/operations.cpp b/libcxx/src/filesystem/operations.cpp
index 08a6b2b86e2..876399fb4d4 100644
--- a/libcxx/src/filesystem/operations.cpp
+++ b/libcxx/src/filesystem/operations.cpp
@@ -44,7 +44,7 @@
#include <sys/time.h> // for gettimeofday and timeval
#endif // !defined(CLOCK_REALTIME)
-#if defined(__unix__) && defined(__ELF__) && defined(_LIBCPP_HAS_COMMENT_LIB_PRAGMA)
+#if defined(__ELF__) && defined(_LIBCPP_LINK_RT_LIB)
#pragma comment(lib, "rt")
#endif
OpenPOWER on IntegriCloud