Commit e3805614 authored by Min RK's avatar Min RK

quote library_dir_option after calling unpatched version

avoids double-quotes if the calling function does the quoting correctly.
parent ca35cb9e
...@@ -233,10 +233,11 @@ def msvc14_library_dir_option(self, dir): ...@@ -233,10 +233,11 @@ def msvc14_library_dir_option(self, dir):
------ ------
"\LIBPATH" argument: str "\LIBPATH" argument: str
""" """
if ' ' in dir and '"' not in dir: opt = unpatched['msvc14_library_dir_option'](self, dir)
if ' ' in opt and '"' not in opt:
# Quote if space and not already quoted # Quote if space and not already quoted
dir = '"%s"' % dir opt = '"%s"' % opt
return unpatched['msvc14_library_dir_option'](self, dir) return opt
def _augment_exception(exc, version, arch=''): def _augment_exception(exc, version, arch=''):
......
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