summaryrefslogtreecommitdiffstats
path: root/SCons/Tool/mslink.py
diff options
context:
space:
mode:
Diffstat (limited to 'SCons/Tool/mslink.py')
-rw-r--r--SCons/Tool/mslink.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/SCons/Tool/mslink.py b/SCons/Tool/mslink.py
index 3dac7f0..1376020 100644
--- a/SCons/Tool/mslink.py
+++ b/SCons/Tool/mslink.py
@@ -43,9 +43,11 @@ import SCons.Tool.msvc
import SCons.Tool.msvs
import SCons.Util
-from .MSCommon import msvc_setup_env_once, msvc_exists
+from .MSCommon import msvc_setup_env_once, msvc_setup_env_tool
from .MSCommon.common import get_pch_node
+tool_name = os.path.splitext(os.path.basename(__file__))[0]
+
def pdbGenerator(env, target, source, for_signature):
try:
return ['/PDB:%s' % target[0].attributes.pdb, '/DEBUG']
@@ -307,7 +309,7 @@ def generate(env):
env['_MANIFEST_SOURCES'] = None # _windowsManifestSources
# Set-up ms tools paths
- msvc_setup_env_once(env)
+ msvc_setup_env_once(env, tool=tool_name)
# Loadable modules are on Windows the same as shared libraries, but they
# are subject to different build parameters (LDMODULE* variables).
@@ -330,7 +332,7 @@ def generate(env):
env['TEMPFILEARGJOIN'] = os.linesep
def exists(env):
- return msvc_exists(env)
+ return msvc_setup_env_tool(env, tool=tool_name)
# Local Variables:
# tab-width:4