Support setting default value for -rtlib at build time

Lei Zhang via cfe-commits cfe-commits at lists.llvm.org
Sun Jul 17 08:22:42 PDT 2016


Hi,

This patch introduces a new cmake variable: CLANG_DEFAULT_RTLIB, thru
which we can specify a default value for -rtlib (libgcc or
compiler-rt) at build time, just like how we set the default C++
stdlib thru CLANG_DEFAULT_CXX_STDLIB.

With these two options, we can configure clang to build binaries on
Linux that have no runtime dependence on any gcc libs (libstdc++ or
libgcc_s).


Regards,
Lei
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang-default-rtlib.patch
Type: application/octet-stream
Size: 2284 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160717/8a44c33b/attachment.obj>


More information about the cfe-commits mailing list