[PATCH] D11153: [Compiler-RT] If unwind/c++abi is set, don't include libgcc

Logan Chien tzuhsiang.chien at gmail.com
Tue Jul 21 17:23:06 PDT 2015


logan added a comment.

> Since there's no way to remove libraries from the list (because the compiler adds them), there is no way a warning would be effective. Ie. the user would get a warning and would be able to do nothing.


Although it is difficult to use, we can remove the default libraries with `-nostdlib`.  This is what I am using when I am building different configurations of libc++abi and libunwind on Linux.

For your long-term plan on the default standard library, I agree that we should select the default standard library according to the environment.  However, I am still concerning the overloaded meaning for `-l` options.  For example, what will happen if the users specified `-lunwind` when they are mean to link with libunwind[1] from Savannah?  The libunwind from Savannah does not include C++ level 1 unwinding library by default.

[1] http://www.nongnu.org/libunwind/


http://reviews.llvm.org/D11153







More information about the llvm-commits mailing list