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
4 changes: 3 additions & 1 deletion test/wasi/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,7 @@ wasm/pthread.wasm : c/pthread.c
wasm/%.wasm : c/%.c
$(CC) $< $(CFLAGS) --target=$(TARGET) --sysroot=$(SYSROOT) -s -o $@

.PHONY clean:
.PHONY: clean
.NOTPARALLEL: clean
Copy link
Member

Choose a reason for hiding this comment

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

Do we need this .NOTPARALLEL?

If the .NOTPARALLEL special target has prerequisites, then each of those prerequisites will be considered a target and all prerequisites of these targets will be run serially.

According to the doc, .NOTPARALLEL is only useful when the target in this list has prerequisites, and their prerequisites are run serially. clean has no prerequisites.

Copy link
Contributor Author

@aduh95 aduh95 Aug 22, 2025

Choose a reason for hiding this comment

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

Ah maybe, I was following what I did 4 years ago in

node/Makefile

Lines 198 to 200 in 7232f09

.PHONY: clean
.NOTPARALLEL: clean
clean: ## Remove build artifacts.

The idea would be to be able to run make -j clean all and have the clean part be run serially before all and its prerequisites start, in parallel

clean:
rm -f $(OBJ)
Loading