llvm-config: Add --has-rtti option
authorTom Stellard <thomas.stellard@amd.com>
Wed, 4 Nov 2015 20:57:43 +0000 (20:57 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Wed, 4 Nov 2015 20:57:43 +0000 (20:57 +0000)
commit7ba0c20d4c1bedf096f5b5e2927226056c101e11
tree02123b32943575f5d66977bd6b906af5084d38fc
parent0a019f716257784959b9f05bcd31547194be79a6
llvm-config: Add --has-rtti option

Summary:
This prints NO if LLVM was built with -fno-rtti or an equivalent flag
and YES otherwise.  The reasons to add -has-rtti rather than adding -fno-rtti
to --cxxflags are:

1. Building LLVM with -fno-rtti does not always mean that client
applications need this flag.

2. Some compilers have a different flag for disabling rtti, and the
compiler being used to build LLVM may not be the compiler being used to
build the application.

Reviewers: echristo, chandlerc, beanz

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D11849

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252075 91177308-0d34-0410-b5e6-96231b3b80d8
cmake/modules/AddLLVM.cmake
tools/llvm-config/BuildVariables.inc.in
tools/llvm-config/CMakeLists.txt
tools/llvm-config/Makefile
tools/llvm-config/llvm-config.cpp