From 010c98f9e62a06dd47892d8f50056d60b1bc35db Mon Sep 17 00:00:00 2001 From: chenmozhijin <110812055+chenmozhijin@users.noreply.github.com> Date: Tue, 17 Sep 2024 05:02:43 +0800 Subject: [PATCH] update --- build_helper/utils/openwrt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build_helper/utils/openwrt.py b/build_helper/utils/openwrt.py index f6739738..245bc704 100644 --- a/build_helper/utils/openwrt.py +++ b/build_helper/utils/openwrt.py @@ -63,11 +63,11 @@ def get_target(self) -> tuple[str | None, str | None]: def make(self, target: str, debug: bool = False) -> None: args = ['make', target] if debug: - args.extend(["-j 1", "V=s"]) + args.extend(["-j1", "V=s"]) else: if not (cpu_count := os.cpu_count()): cpu_count = 1 - args.append(f"-j {cpu_count + 1}") + args.append(f"-j{cpu_count + 1}") logger.debug("运行命令:%s", " ".join(args)) result = subprocess.run(args, cwd=self.path) if result.returncode != 0: