Teach mingw toolchain driver to properly emit static or dynamic linking of ligcc.
authorYaron Keren <yaron.keren@gmail.com>
Sun, 9 Aug 2015 00:24:07 +0000 (00:24 +0000)
committerYaron Keren <yaron.keren@gmail.com>
Sun, 9 Aug 2015 00:24:07 +0000 (00:24 +0000)
commitaa2813325fba721192c52ef6181e7d1781c7beeb
tree31401103dadc734dabbc1c31e16680a4fe2f5cdd
parent55f097fa8ee1383a37d818f52d93285814d98c63
Teach mingw toolchain driver to properly emit static or dynamic linking of ligcc.
Implemented in MinGW::Linker::AddLibGCC since AddLibgcc is a logic puzzle even
before adding one more boolean. A first step towards simplification of AddLibgcc
would be to factor out the Android AddLibgcc code into its own routine.

llvm-svn: 244407
clang/lib/Driver/Tools.cpp
clang/test/Driver/mingw-libgcc.c [new file with mode: 0644]