summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2020-03-12 18:03:21 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2020-03-12 22:09:04 +0530
commit5f574af5f7c1a6ae973fd1102563935501e27e73 (patch)
tree2274b65b757767ed2d9f350f9e243a7358b5fede
parent69e9d32bca23d75a9a5d7df794d34c9aeb949d8a (diff)
downloadmeson-nirbheek/document-b_vscrt.tar.gz
docs: Document from_builtype mapping for b_vscrtnirbheek/document-b_vscrt
-rw-r--r--docs/markdown/Builtin-options.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/markdown/Builtin-options.md b/docs/markdown/Builtin-options.md
index ea5ad70e7..e938deefb 100644
--- a/docs/markdown/Builtin-options.md
+++ b/docs/markdown/Builtin-options.md
@@ -134,6 +134,19 @@ platforms or with all compilers:
The value of `b_sanitize` can be one of: `none`, `address`, `thread`,
`undefined`, `memory`, `address,undefined`.
+<a name="b_vscrt-from_buildtype"></a>
+The default value of `b_vscrt` is `from_buildtype`. In that case, the following
+table is used internally to pick the CRT compiler arguments based on the value
+of the `buildtype` option:
+
+| buildtype | Visual Studio CRT |
+| -------- | ----------------- |
+| debug | `/MDd` |
+| debugoptimized | `/MD` |
+| release | `/MD` |
+| minsize | `/MD` |
+| custom | error! |
+
### Notes about Apple Bitcode support
`b_bitcode` will pass `-fembed-bitcode` while compiling and will pass