Skip to content

Commit b75bb98

Browse files
committed
fix: repair parallel compilation parameters when building third-party libraries
Use "-j" instead of "-j$(nproc)" to be compatible with environments on different platforms
1 parent 7f3fa8f commit b75bb98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python_bindings/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def ensure_cmake_build():
7070
if not os.path.exists(spdlog_lib) or not os.path.exists(fmt_lib):
7171
print("Building third-party libraries...")
7272
# 先构建第三方库
73-
subprocess.run(["make", "spdlog", "fmt", "-j$(nproc)"], cwd=build_dir, check=True)
73+
subprocess.run(["make", "spdlog", "fmt", "-j"], cwd=build_dir, check=True)
7474

7575
print("CMake build setup completed.")
7676
return True

0 commit comments

Comments
 (0)