Commit ad42e2a7 authored by Nirbheek Chauhan's avatar Nirbheek Chauhan 🐜

cerbero: Fix operator precedence issues

/ is evaluated before + which cause an error saying you can't
concatenate str to WindowsPath
parent 8420d799
......@@ -189,9 +189,9 @@ class WindowsBootstrapper(BootstrapperBase):
#
# MSYS's link.exe overrides MSVC's link.exe in new shells, so rename it
for tool in ('cpp', 'link'):
if (self.msys_mingw_bindir / tool + '.exe').is_file():
os.replace(self.msys_mingw_bindir / tool + '.exe',
self.msys_mingw_bindir / tool + '.exe.bck')
if (self.msys_mingw_bindir / (tool + '.exe')).is_file():
os.replace(self.msys_mingw_bindir / (tool + '.exe'),
self.msys_mingw_bindir / (tool + '.exe.bck'))
def add_non_prefixed_strings(self):
# libtool m4 macros uses non-prefixed 'strings' command. We need to
......
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