-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[lldb] Add early CMake check for 'make' tool #111531
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
weliveindetail
merged 7 commits into
llvm:main
from
weliveindetail:lldb-test-check-make-upstream
Oct 10, 2024
Merged
Changes from 3 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
c7356d3
[lldb] Add early CMake check for 'make' tool
weliveindetail 5e7bc2d
Pass make as an explicit argument to dotest.py
weliveindetail 908f086
Fix Python code format detail
weliveindetail 3f6b93d
[lldb] Generalize make tool detection in CMake
weliveindetail 994cb5a
Drop special-case for BSDs in dotest.py
weliveindetail 2ce0f99
Drop quoting for the make tool path in dotest.py
weliveindetail 7405281
Detect make and gmake in a single CMake find_program and drop special…
weliveindetail File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default install path on Windows is
C:\Program Files (x86)\GnuWin32\bin\make.exe
unfortunately.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That may be fine, but I think this is the wrong place to quote it. I think it should happen somewhere around the place where this variable is concatenated into a string (or passed to whatever it is that requires it to be quoted).
That said, after tracing this variable, I'm a little unsure as to why is this needed. IIUC, this eventually makes its way to the
subprocess.check_output
call here, which should be able to handle quoting on its own.Can you explain what the problem was without this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added this because yesterday my tests failed with:
I double-checked again today and this doesn't happen anymore. I am not sure why, maybe I had an inconsistent configuration state. The parameter for dotest.py is
--make C:/Program Files (x86)/GnuWin32/bin/make.exe
and the command that lldbtest.py runs is starting withC:/Program Files (x86)/GnuWin32/bin/make.exe VPATH=...
. I cleared the cached inlldb-test-build.noindex
and checked sure the binaries are recreated successfully by the test suite. It works without the quotes.I am attaching a log file TestBreakpointByLineAndColumn.log with the commands dumped for future reference. I will the quoting and assume it just keeps working.