Skip to content

Commit 0076b99

Browse files
authored
clarify behavior of per-package compiler.runtime_type deduction (#4220)
1 parent 0186053 commit 0076b99

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

reference/config_files/profiles.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -872,6 +872,15 @@ For example, to define a ``shared=True`` option for all packages except to `zlib
872872
!zlib/*:shared=True
873873
874874
875+
Note that for the ``msvc`` compiler, the ``compiler.runtime_type`` setting is automatically initialized from
876+
the ``build_type`` setting value by the ``profile.py`` plugin, as it is a good default for the vast majority
877+
of cases. That means that a user defining ``-s build_type=MinSizeRel`` will by default get a
878+
``compiler.runtime_type=Release`` value for ``msvc`` compiler.
879+
However, this is not the case for package specific settings, and the ``profile.py`` plugin won't automatically
880+
define the ``compiler.runtime_type`` for ``msvc``, so doing something like ``mydep/*:build_type=<build_type>``
881+
doesn't automatically define ``mydep/*:compiler.runtime_type``.
882+
883+
875884
Profile includes
876885
----------------
877886

0 commit comments

Comments
 (0)