fix(protocan): исправь вызов MSVC из host builder

This commit is contained in:
2026-08-31 20:48:17 +03:00
parent 7fe76b3c3b
commit 68040a2803

View File

@@ -51,9 +51,11 @@ def _build_msvc(output: Path, build_dir: Path) -> None:
command = (
f'call "{vcvars}" && cl /nologo /W4 /std:c11 '
f'/DPCAN_ABI_BUILD_DLL /I"{INCLUDE}" /LD {quoted_sources} '
f'/Fe:"{output}"'
f'/Fe"{output}"'
)
subprocess.run(["cmd.exe", "/d", "/c", command], cwd=build_dir, check=True)
# shell=True is intentional on Windows: ``call`` must run the batch file
# in the same cmd.exe process that subsequently launches cl.exe.
subprocess.run(command, cwd=build_dir, check=True, shell=True)
def _build_cc(output: Path, build_dir: Path) -> None: