Skip to content

Commit 8ea34a2

Browse files
committed
fix: 修复 macOS 上 prlimit 不可用导致测试失败
macOS 没有 prlimit 命令,将其与 Windows 一样直接运行进程
1 parent b17ce6c commit 8ea34a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/autocode_mcp/utils/compiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ async def _run_process(
178178
start_time = time.time()
179179

180180
try:
181-
if sys.platform == "win32":
181+
if sys.platform == "win32" or sys.platform == "darwin":
182182
process = await asyncio.create_subprocess_exec(
183183
*cmd,
184184
stdin=asyncio.subprocess.PIPE,

0 commit comments

Comments
 (0)