summaryrefslogtreecommitdiffstats
path: root/SCons/Tool/MSCommon/__init__.py
diff options
context:
space:
mode:
authorJoseph Brill <48932340+jcbrill@users.noreply.github.com>2022-04-26 16:39:54 (GMT)
committerJoseph Brill <48932340+jcbrill@users.noreply.github.com>2022-04-26 16:39:54 (GMT)
commit35d0a4621711902e9d8ee1ddb625fc782dff5de3 (patch)
tree29912eece4669b02c31bfbe5237ff6c30e102958 /SCons/Tool/MSCommon/__init__.py
parent6f68a4fc1646be9ec4b1b6c5e8fbda031d239a0b (diff)
downloadSCons-35d0a4621711902e9d8ee1ddb625fc782dff5de3.zip
SCons-35d0a4621711902e9d8ee1ddb625fc782dff5de3.tar.gz
SCons-35d0a4621711902e9d8ee1ddb625fc782dff5de3.tar.bz2
Replace msvc_exists in tools exists functions for msvc tools with msvc_setup_env_tool that also registers the tool name. The new function may indicate that the tool should be included even when no instances of msvc are installed. This is necessary for some error checking. Add a tool name argument to msvc_setup_env_once as well. Add default msvc version detection. Add a global and environment local policy variable for handling warnings and/or exceptions: error, warn, ignore. By default warnings are produced. Update tests accordingly.
Diffstat (limited to 'SCons/Tool/MSCommon/__init__.py')
-rw-r--r--SCons/Tool/MSCommon/__init__.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/SCons/Tool/MSCommon/__init__.py b/SCons/Tool/MSCommon/__init__.py
index 50eed73..9d8a8ff 100644
--- a/SCons/Tool/MSCommon/__init__.py
+++ b/SCons/Tool/MSCommon/__init__.py
@@ -34,10 +34,12 @@ from SCons.Tool.MSCommon.sdk import mssdk_exists, mssdk_setup_env
from SCons.Tool.MSCommon.vc import (
msvc_exists,
- msvc_setup_env,
+ msvc_setup_env_tool,
msvc_setup_env_once,
msvc_version_to_maj_min,
msvc_find_vswhere,
+ set_msvc_notfound_policy,
+ get_msvc_notfound_policy,
)
from SCons.Tool.MSCommon.vs import (