Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ configure: .always

compile: .always
$(CMAKE) --build ./build --config $(PRESET) --target clang_format
$(CMAKE) --build ./build --config $(PRESET) --parallel 4
$(CMAKE) --build ./build --config $(PRESET)
Copy link
Copy Markdown

@augmentcode augmentcode Bot May 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing --parallel here may cause cmake --build to run effectively single-threaded for some generators (e.g., Unix Makefiles), which seems opposite to the PR intent of “not restricting parallelism”. Is the intent to rely on CMAKE_BUILD_PARALLEL_LEVEL/generator defaults instead?

Severity: medium

Fix This in Augment

🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: Removing --parallel 4 entirely (rather than replacing with --parallel with no argument) may cause single-threaded builds when using the Unix Makefiles generator, since make does not parallelize by default. Using --parallel without a number would let the native build tool choose its default parallelism (e.g., Ninja uses cores+2, and CMAKE_BUILD_PARALLEL_LEVEL can override). This better matches the intent of not artificially restricting parallelism.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At Makefile, line 25:

<comment>Removing `--parallel 4` entirely (rather than replacing with `--parallel` with no argument) may cause single-threaded builds when using the Unix Makefiles generator, since `make` does not parallelize by default. Using `--parallel` without a number would let the native build tool choose its default parallelism (e.g., Ninja uses cores+2, and `CMAKE_BUILD_PARALLEL_LEVEL` can override). This better matches the intent of not artificially restricting parallelism.</comment>

<file context>
@@ -22,7 +22,7 @@ configure: .always
 compile: .always
 	$(CMAKE) --build ./build --config $(PRESET) --target clang_format
-	$(CMAKE) --build ./build --config $(PRESET) --parallel 4
+	$(CMAKE) --build ./build --config $(PRESET)
 	$(CMAKE) --install ./build --prefix ./build/dist --config $(PRESET) --verbose \
 		--component sourcemeta_core
</file context>
Suggested change
$(CMAKE) --build ./build --config $(PRESET)
$(CMAKE) --build ./build --config $(PRESET) --parallel

$(CMAKE) --install ./build --prefix ./build/dist --config $(PRESET) --verbose \
--component sourcemeta_core
$(CMAKE) --install ./build --prefix ./build/dist --config $(PRESET) --verbose \
Expand Down
Loading