mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
bpo-34225: Ensure INCLUDE and LIB directories do not end with a backslash. (GH-8464)
This commit is contained in:
parent
e0d67f17cc
commit
5473f061f5
2 changed files with 3 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue