]> git.ipfire.org Git - thirdparty/make.git/commit
Use a recursive environment if any command needs it
authorPaul Smith <psmith@gnu.org>
Wed, 22 Feb 2023 01:32:12 +0000 (20:32 -0500)
committerPaul Smith <psmith@gnu.org>
Wed, 22 Feb 2023 01:53:48 +0000 (20:53 -0500)
commit8b8cc3a825b0e9e176db5d90084c814e3744a300
tree2f36ba8fe6274849c6fb9b38882bf4f5b5a39a00
parent9b6fedef1ce34391e60cc96d1cb52b9884a8339a
Use a recursive environment if any command needs it

We only create one target environment for all commands in a recipe.
Ensure it's set for recursive make if ANY command is recursive, not
just the first one.

* src/job.c (start_job_command): Check for any recursive command.
* tests/scripts/features/jobserver: Test recursion on second line.
src/job.c
tests/scripts/features/jobserver