aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2019-10-30 22:49:17 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2019-11-02 19:49:14 +0200
commitb3fe4a0a18edbd85c3a9e119912c968960f99574 (patch)
treeb561e24dbc568df561ec0ca90a75f16483428bcc /docs
parent760b8633bc350b15ae7f67fe1d78ed91179bbb79 (diff)
downloadmeson-b3fe4a0a18edbd85c3a9e119912c968960f99574.zip
meson-b3fe4a0a18edbd85c3a9e119912c968960f99574.tar.gz
meson-b3fe4a0a18edbd85c3a9e119912c968960f99574.tar.bz2
Add option for controlling RTTI.
Diffstat (limited to 'docs')
-rw-r--r--docs/markdown/Builtin-options.md1
-rw-r--r--docs/markdown/FAQ.md11
-rw-r--r--docs/markdown/snippets/nortti.md3
3 files changed, 15 insertions, 0 deletions
diff --git a/docs/markdown/Builtin-options.md b/docs/markdown/Builtin-options.md
index 3219af8..4172f1a 100644
--- a/docs/markdown/Builtin-options.md
+++ b/docs/markdown/Builtin-options.md
@@ -144,6 +144,7 @@ compiler being used:
| cpp_std | none | none, c++98, c++03, c++11, c++14, c++17, <br/>c++1z, gnu++03, gnu++11, gnu++14, gnu++17, gnu++1z, <br/> vc++14, vc++17, vc++latest | C++ language standard to use |
| cpp_debugstl | false | true, false | C++ STL debug mode |
| cpp_eh | default | none, default, a, s, sc | C++ exception handling type |
+| cpp_rtti | true | true, false | Whether to enable RTTI (runtime type identification) |
| cpp_winlibs | see below | free-form comma-separated list | Standard Windows libs to link against |
The default values of `c_winlibs` and `cpp_winlibs` are in compiler-specific
diff --git a/docs/markdown/FAQ.md b/docs/markdown/FAQ.md
index 06379ae..7625361 100644
--- a/docs/markdown/FAQ.md
+++ b/docs/markdown/FAQ.md
@@ -489,3 +489,14 @@ libbar = library('bar', sources: libbar_sources, dependencies: libfoo_dep)
A good example of a generator that outputs both sources and headers is
[`gnome.mkenums()`](https://mesonbuild.com/Gnome-module.html#gnomemkenums).
+
+## How do I disable exceptions and RTTI in my C++ project?
+
+With the `cpp_eh` and `cpp_rtti` options. A typical invocation would
+look like this:
+
+```
+meson -Dcpp_eh=none -Dcpp_rtti=false <other options>
+```
+
+The RTTI option is only available since Meson version 0.53.0.
diff --git a/docs/markdown/snippets/nortti.md b/docs/markdown/snippets/nortti.md
new file mode 100644
index 0000000..63d85c5
--- /dev/null
+++ b/docs/markdown/snippets/nortti.md
@@ -0,0 +1,3 @@
+## Added global option to disable C++ RTTI
+
+The new boolean option is called `cpp_rtti`.