Commit 72fb0955 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 7c683cbb
......@@ -269,6 +269,8 @@ class MSVCCompiler (CCompiler) :
obj_names = []
for src_name in source_filenames:
(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:
# Better to raise an exception instead of silently continuing
# and later complain about sources and targets having
......
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