Skip to content

Commit a28030b

Browse files
authored
fix: add missing f-string prefix for --parallel bootstrap arg (#665)
The --parallel={parallel} argument was a regular string instead of an f-string, causing it to literally pass "--parallel={parallel}" to the cmake bootstrap script instead of the actual parallel job count. This resulted in single-threaded bootstrap compilation regardless of CMAKE_BUILD_PARALLEL_LEVEL setting.
1 parent aa7b6bf commit a28030b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_build_backend/backend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def _bootstrap_build(temp_path: str, config_settings: dict[str, list[str] | str]
120120
bootstrap_path = next(temp_path_.glob("cmake-*/bootstrap"))
121121
prefix_path = temp_path_ / "cmake-install"
122122
cmake_path = prefix_path / "bin" / "cmake"
123-
bootstrap_args = [f"--prefix={prefix_path}", "--no-qt-gui", "--no-debugger", "--parallel={parallel}", "--", "-DBUILD_TESTING=OFF", "-DBUILD_CursesDialog:BOOL=OFF"]
123+
bootstrap_args = [f"--prefix={prefix_path}", "--no-qt-gui", "--no-debugger", f"--parallel={parallel}", "--", "-DBUILD_TESTING=OFF", "-DBUILD_CursesDialog:BOOL=OFF"]
124124
previous_cwd = Path().absolute()
125125
os.chdir(bootstrap_path.parent)
126126
try:

0 commit comments

Comments
 (0)