Skip to content

Commit e17589c

Browse files
jeffvanderstoepGerrit Code Review
authored andcommitted
Merge changes from topic "use-rust-1.51.0"
* changes: Update Rust sysroots rustc-1.51.0 Build 7245052
2 parents eadd273 + 2e1b62d commit e17589c

File tree

2,187 files changed

+925795
-25
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,187 files changed

+925795
-25
lines changed

Android.bp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ license {
3737
// large-scale-change unable to identify any license_text files
3838
}
3939

40-
rustc = "linux-x86/1.50.0/src/stdlibs"
40+
rustc = "linux-x86/1.51.0/src/stdlibs"
4141

4242
// The basic crates are only available as static libraries
4343
// .rust_sysroot is appended to the name to prevent accidental direct usage
@@ -84,6 +84,7 @@ rust_library_rlib {
8484
"compiler_builtins",
8585
],
8686
rlibs: [
87+
"liballoc.rust_sysroot",
8788
"libcompiler_builtins.rust_sysroot",
8889
"libcore.rust_sysroot",
8990
"liblibc.rust_sysroot",

darwin-x86/1.51.0/bin/cargo

14.5 MB
Binary file not shown.

darwin-x86/1.51.0/bin/cargo-clippy

440 KB
Binary file not shown.

darwin-x86/1.51.0/bin/cargo-fmt

1.41 MB
Binary file not shown.

darwin-x86/1.51.0/bin/clippy-driver

7.49 MB
Binary file not shown.

darwin-x86/1.51.0/bin/rust-analyzer

25.5 MB
Binary file not shown.

darwin-x86/1.51.0/bin/rust-gdb

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/bin/sh
2+
# Exit if anything fails
3+
set -e
4+
5+
# Prefer rustc in the same directory as this script
6+
DIR="$(dirname "$0")"
7+
if [ -x "$DIR/rustc" ]; then
8+
RUSTC="$DIR/rustc"
9+
else
10+
RUSTC="rustc"
11+
fi
12+
13+
# Find out where the pretty printer Python module is
14+
RUSTC_SYSROOT="$("$RUSTC" --print=sysroot)"
15+
GDB_PYTHON_MODULE_DIRECTORY="$RUSTC_SYSROOT/lib/rustlib/etc"
16+
17+
# Run GDB with the additional arguments that load the pretty printers
18+
# Set the environment variable `RUST_GDB` to overwrite the call to a
19+
# different/specific command (defaults to `gdb`).
20+
RUST_GDB="${RUST_GDB:-gdb}"
21+
PYTHONPATH="$PYTHONPATH:$GDB_PYTHON_MODULE_DIRECTORY" exec ${RUST_GDB} \
22+
--directory="$GDB_PYTHON_MODULE_DIRECTORY" \
23+
-iex "add-auto-load-safe-path $GDB_PYTHON_MODULE_DIRECTORY" \
24+
"$@"

0 commit comments

Comments
 (0)