diff --git a/setup/setup_build_extension.py b/setup/setup_build_extension.py index ea2df7bf9..279349aeb 100644 --- a/setup/setup_build_extension.py +++ b/setup/setup_build_extension.py @@ -52,7 +52,7 @@ def build_extensions(self): # os.rename(os.path.join(lib_dir, _a), os.path.join(lib_dir, lib_file)) # self.spwan(['lib', '/DEF:' + lib_fp, '/OUT:' + lib_file.replace('.a', '.lib')]) # self.spawn(['ar', '-t', f'{lib_dir}/{lib_file}']) # using a msys2 command with unix path - self.spawn(['dumpbin.exe', '/ALL', f'{lib_dir}/{lib_file}']) + self.spawn(['dumpbin.exe', '/ALL', f'{lib_dir}/{lib_file}'.replace('/', '\\')]) link_args_msvc.append(lib_file) else: self.extensions[0].extra_link_args.append(lib_fp)