From 7e1719fe06382ff74bba8317903365ba7215625f Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Thu, 12 Mar 2020 19:18:41 +0000 Subject: docs: Document from_builtype mapping for b_vscrt [skip ci] --- docs/markdown/Builtin-options.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'docs') diff --git a/docs/markdown/Builtin-options.md b/docs/markdown/Builtin-options.md index ea5ad70..e938dee 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`. + +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 -- cgit v1.1