[runtimes] Check if pragma comment(lib, ...) is supported first
authorPetr Hosek <phosek@chromium.org>
Thu, 30 May 2019 04:40:21 +0000 (04:40 +0000)
committerPetr Hosek <phosek@chromium.org>
Thu, 30 May 2019 04:40:21 +0000 (04:40 +0000)
commit789b7f0828b08f5c4bf9ff1ff7ef733c73ecdc0a
tree529f48a2d6693be385cf978860ec04995e6dfe86
parent2c91c3b7af7cd4da64f1babde3798d65522a21e4
[runtimes] Check if pragma comment(lib, ...) is supported first

This fixes the issue introduced by r362048 where we always use
pragma comment(lib, ...) for dependent libraries when the compiler
is Clang, but older Clang versions don't support this pragma so
we need to check first if it's supported before using it.

llvm-svn: 362055
20 files changed:
libcxx/CMakeLists.txt
libcxx/cmake/config-ix.cmake
libcxx/src/algorithm.cpp
libcxx/src/chrono.cpp
libcxx/src/debug.cpp
libcxx/src/experimental/memory_resource.cpp
libcxx/src/filesystem/operations.cpp
libcxx/src/mutex.cpp
libcxx/src/shared_mutex.cpp
libcxx/src/thread.cpp
libcxxabi/CMakeLists.txt
libcxxabi/cmake/config-ix.cmake
libcxxabi/src/cxa_exception_storage.cpp
libcxxabi/src/cxa_guard_impl.h
libcxxabi/src/cxa_thread_atexit.cpp
libcxxabi/src/fallback_malloc.cpp
libunwind/CMakeLists.txt
libunwind/cmake/config-ix.cmake
libunwind/src/AddressSpace.hpp
libunwind/src/RWMutex.hpp