Tweak MAKEFLAGS and -X interaction#138
Open
ronan-d wants to merge 1 commit intoTrepan-Debuggers:remake-4-3from
Open
Tweak MAKEFLAGS and -X interaction#138ronan-d wants to merge 1 commit intoTrepan-Debuggers:remake-4-3from
ronan-d wants to merge 1 commit intoTrepan-Debuggers:remake-4-3from
Conversation
Before this commit, running one of "continue", "next", "step" or "finish" in the interactive debugger overwrote the value of MAKEFLAGS to either "" or "-X". This was sometimes a problem. For instance, with Linux v5.18, first setting up the build system with `make defconfig`, launching the debugger with `remake -X modules`, and running `continue` triggered the following error: m2c -o fs/efivarfs/efivarfs.o fs/efivarfs/efivarfs.mod remake[1]: m2c: No such file or directory <builtin>*** [fs/efivarfs/efivarfs.o] error 127 This happened because the root makefile disables Make's built-in rules by appending "-R" to MAKEFLAGS, and the other makefiles rely on these rules being disabled. `continue` overwrote MAKEFLAGS, which caused recursive make instances to have built-in rules enabled. This commit fixes this issue by changing the way the debugger commands communicate status to other instances. It still happens through MAKEFLAGS, but the value is now generated using the same function upstream Make uses.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi, this patch addresses an issue I had using remake with Linux's build system. The issue is described in the commit message.
The mechanism introduced is a little clunky and it uses global state, but I've been using remake with this patch applied for a while and it does not seem to break anything.