Skip to content

Commit 55cf38e

Browse files
authored
Install the latest gdb in cross (#929)
Signed-off-by: James Sturtevant <[email protected]>
1 parent e302469 commit 55cf38e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Cross.toml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
[build]
22
pre-build = [
3-
"apt-get update && apt-get -y install gdb"
3+
"apt-get update && apt-get -y install wget build-essential libgmp-dev libmpfr-dev",
4+
"cd /tmp && curl https://sourceware.org/pub/gdb/releases/gdb-16.3.tar.gz -o /tmp/gdb-16.3.tar.gz",
5+
"cd /tmp && tar -xf gdb-16.3.tar.gz",
6+
"cd /tmp/gdb-16.3 && ./configure --prefix=/usr/local",
7+
"cd /tmp/gdb-16.3 && make -j$(nproc)",
8+
"cd /tmp/gdb-16.3 && make install",
49
]
510

611
[build.env]
712
passthrough = [
813
"TARGET_TRIPLE", # Some tests invoke Cargo directly and need this to run correctly
9-
]
14+
]

0 commit comments

Comments
 (0)