summaryrefslogtreecommitdiffstats
path: root/llvm/docs/CMake.rst
diff options
context:
space:
mode:
authorDan Liew <dan@su-root.co.uk>2014-07-22 15:41:18 +0000
committerDan Liew <dan@su-root.co.uk>2014-07-22 15:41:18 +0000
commita5bdc846aa62215dab94630f5854acef0f080b27 (patch)
treeb6fd5897d61aef157534a07b58defe224578ad10 /llvm/docs/CMake.rst
parent521237cad6b82e8f8bd340410e275474672838ba (diff)
downloadbcm5719-llvm-a5bdc846aa62215dab94630f5854acef0f080b27.tar.gz
bcm5719-llvm-a5bdc846aa62215dab94630f5854acef0f080b27.zip
Added LLVM_ENABLE_RTTI and LLVM_ENABLE_EH options that allow RTTI and EH
to globally be controlled. Individual targets (e.g. ExceptionDemo) can still override this by using LLVM_REQUIRE_RTTI and LLVM_REQUIRE_EH if they need to be compiled with RTTI or exception handling respectively. llvm-svn: 213663
Diffstat (limited to 'llvm/docs/CMake.rst')
-rw-r--r--llvm/docs/CMake.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/docs/CMake.rst b/llvm/docs/CMake.rst
index bfc9cb94844..2c832387538 100644
--- a/llvm/docs/CMake.rst
+++ b/llvm/docs/CMake.rst
@@ -218,10 +218,18 @@ LLVM-specific variables
Enables code assertions. Defaults to OFF if and only if ``CMAKE_BUILD_TYPE``
is *Release*.
+**LLVM_ENABLE_EH**:BOOL
+ Build LLVM with exception handling support. This is necessary if you wish to
+ link against LLVM libraries and make use of C++ exceptions in your own code
+ that need to propagate through LLVM code. Defaults to OFF.
+
**LLVM_ENABLE_PIC**:BOOL
Add the ``-fPIC`` flag for the compiler command-line, if the compiler supports
this flag. Some systems, like Windows, do not need this flag. Defaults to ON.
+**LLVM_ENABLE_RTTI**:BOOL
+ Build LLVM with run time type information. Defaults to OFF.
+
**LLVM_ENABLE_WARNINGS**:BOOL
Enable all compiler warnings. Defaults to ON.
OpenPOWER on IntegriCloud