[libunwind][mips] Include gcc_s for linkage
authorStefan Maksimovic <stefan.maksimovic@mips.com>
Thu, 16 Aug 2018 13:40:16 +0000 (13:40 +0000)
committerStefan Maksimovic <stefan.maksimovic@mips.com>
Thu, 16 Aug 2018 13:40:16 +0000 (13:40 +0000)
commitafc9f8ab6d2d4a0776a379e1e6513ee49bec9b29
tree02da5747f54ad91e6ed6fea402ac72f8c9eb2dc2
parent51534ab864f7581d8972e87ba0211a0f9dbe46ed
[libunwind][mips] Include gcc_s for linkage

When compiling with optimizations, mips requires various helper routines(__ashldi3 and the like) contained in libgcc_s.
Conditionally include libgcc_s in the set of libraries to be linked to.

Differential Revision: https://reviews.llvm.org/D50243

llvm-svn: 339878
libunwind/src/CMakeLists.txt