-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A patch is needed for the build to work with MinGW which doesn't define the compatibility `uint` type used by the Rust demangler in libiberty.
- Loading branch information
Showing
3 changed files
with
25 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name: CI | ||
env: | ||
BINUTILS_VERSION: 2.36.1 | ||
BINUTILS_VERSION: 2.37 | ||
|
||
on: | ||
push: | ||
|
This file contains 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
diff -U3 -Narp binutils-2.37.orig/libiberty/rust-demangle.c binutils-2.37/libiberty/rust-demangle.c | ||
--- binutils-2.37.orig/libiberty/rust-demangle.c 2021-07-15 16:19:46.000000000 +0200 | ||
+++ binutils-2.37/libiberty/rust-demangle.c 2021-07-19 09:50:29.003790488 +0200 | ||
@@ -75,10 +75,10 @@ struct rust_demangler | ||
int version; | ||
|
||
/* Recursion depth. */ | ||
- uint recursion; | ||
+ unsigned int recursion; | ||
/* Maximum number of times demangle_path may be called recursively. */ | ||
#define RUST_MAX_RECURSION_COUNT 1024 | ||
-#define RUST_NO_RECURSION_LIMIT ((uint) -1) | ||
+#define RUST_NO_RECURSION_LIMIT ((unsigned int) -1) | ||
|
||
uint64_t bound_lifetime_depth; | ||
}; |