Commit b813c53c authored by Martin v. Löwis's avatar Martin v. Löwis

Patch #827386: Support absolute source paths in msvccompiler.py.

Backported to 2.4.
parent bc841a14
...@@ -269,6 +269,8 @@ class MSVCCompiler (CCompiler) : ...@@ -269,6 +269,8 @@ class MSVCCompiler (CCompiler) :
obj_names = [] obj_names = []
for src_name in source_filenames: for src_name in source_filenames:
(base, ext) = os.path.splitext (src_name) (base, ext) = os.path.splitext (src_name)
base = os.path.splitdrive(base)[1] # Chop off the drive
base = base[os.path.isabs(base):] # If abs, chop off leading /
if ext not in self.src_extensions: if ext not in self.src_extensions:
# Better to raise an exception instead of silently continuing # Better to raise an exception instead of silently continuing
# and later complain about sources and targets having # and later complain about sources and targets having
......
...@@ -178,6 +178,8 @@ Extension Modules ...@@ -178,6 +178,8 @@ Extension Modules
Library Library
------- -------
- Patch #827386: Support absolute source paths in msvccompiler.py.
- Patch #1105730: Apply the new implementation of commonprefix in posixpath - Patch #1105730: Apply the new implementation of commonprefix in posixpath
to ntpath, macpath, os2emxpath and riscospath. to ntpath, macpath, os2emxpath and riscospath.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment