Pass the full pathname to MSVC when compiling a debug version. This

allows the debugger to find the source without asking the user to
browse for it.
This commit is contained in:
Thomas Heller 2002-04-25 17:29:45 +00:00
parent 378498dad6
commit 69d31b749d
1 changed files with 6 additions and 0 deletions

View File

@ -309,6 +309,12 @@ class MSVCCompiler (CCompiler) :
else:
self.mkpath (os.path.dirname (obj))
if debug:
# pass the full pathname to MSVC in debug mode,
# this allows the debugger to find the source file
# without asking the user to browse for it
src = os.path.abspath(src)
if ext in self._c_extensions:
input_opt = "/Tc" + src
elif ext in self._cpp_extensions: