bpo-34225: Ensure INCLUDE and LIB directories do not end with a backslash. (GH-8464)

This commit is contained in:
Steve Dower 2018-07-26 17:17:02 +01:00 committed by GitHub
parent 89352b08aa
commit 3cc505e950
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -252,11 +252,11 @@ class MSVCCompiler(CCompiler) :
for dir in vc_env.get('include', '').split(os.pathsep):
if dir:
self.add_include_dir(dir)
self.add_include_dir(dir.rstrip(os.sep))
for dir in vc_env.get('lib', '').split(os.pathsep):
if dir:
self.add_library_dir(dir)
self.add_library_dir(dir.rstrip(os.sep))
self.preprocess_options = None
# If vcruntime_redist is available, link against it dynamically. Otherwise,

View File

@ -0,0 +1 @@
Ensure INCLUDE and LIB directories do not end with a backslash.