Commit 740e96f6 authored by Jason R. Coombs's avatar Jason R. Coombs Committed by GitHub

Merge pull request #723 from minrk/quote-after-calling

quote library_dir_option after calling unpatched version
parents ca35cb9e e3805614
......@@ -233,10 +233,11 @@ def msvc14_library_dir_option(self, dir):
------
"\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
dir = '"%s"' % dir
return unpatched['msvc14_library_dir_option'](self, dir)
opt = '"%s"' % opt
return opt
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