2
0
mirror of https://github.com/boostorg/build.git synced 2026-01-28 19:12:13 +00:00

Fix the case of asking to initialize any msvc toolset when they are already initialized causing errors.

When having "using msvc : x.y ;" in  one config and doing "using msvc ;" in another would fail as the later would try and re-init x.y and error. With this change the empty msvc init will be a no-op as we already having toolsets to use.
This commit is contained in:
René Rivera
2024-06-13 22:31:23 -05:00
parent 957e37007e
commit 53daa9e33b

View File

@@ -1272,6 +1272,13 @@ local rule configure-really ( version ? : options * )
{
local command = [ feature.get-values <command> : $(options) ] ;
# We don't try and register any more versions than what we already know
# about when ask to discover any available versions.
if ! $(version) && ! $(command) && [ $(.versions).used ]
{
return ;
}
if ! $(version) && ! $(command)
{
# We were given neither a command, nor a version.