-
Notifications
You must be signed in to change notification settings - Fork 14k
compiletest: Run the lldb_batchmode.py script in LLDB's embedded Python
#148685
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
base: master
Are you sure you want to change the base?
Conversation
|
This PR modifies If appropriate, please update Some changes occurred in src/tools/compiletest cc @jieyouxu |
|
rustbot has assigned @Mark-Simulacrum. Use |
|
Big thanks to @Walnut356 for suggesting the use of LLDB's embedded Python. This may be a useful alternative to some of the changes proposed in:
r? jieyouxu |
|
|
|
@bors try jobs=aarch64-apple |
This comment has been minimized.
This comment has been minimized.
compiletest: Run the `lldb_batchmode.py` script in LLDB's embedded Python try-job: aarch64-apple
|
Pushed a small tweak to explicitly specify that the script is in Python, and not some other language. Doesn't seem to be needed in practice, but perhaps it will avoid headaches someday. |
Historically, LLDB debuginfo tests have used a Python script to control LLDB via its Python API, instead of invoking the
lldbcommand directly.Unfortunately, this requires us to find and use a version of Python that is compatible with LLDB's Python bindings.
However, it turns out that there is a simpler way to find a compatible Python interpreter: use the one that is embedded in LLDB itself, via the
scriptcommand.