Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
chenmozhijin committed Sep 16, 2024
1 parent 675c5f1 commit 010c98f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build_helper/utils/openwrt.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 010c98f

Please sign in to comment.