File tree Expand file tree Collapse file tree 3 files changed +25
-2
lines changed Expand file tree Collapse file tree 3 files changed +25
-2
lines changed Original file line number Diff line number Diff line change 1
1
name : CI
2
2
env :
3
- BINUTILS_VERSION : 2.36.1
3
+ BINUTILS_VERSION : 2.37
4
4
5
5
on :
6
6
push :
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ TRUE_PATH=$(readlink "$0" || echo "$0")
4
4
MY_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd ) "
5
5
BUILD_DIR=" ${MY_DIR} /build"
6
6
ARTIFACTS_DIR=" ${MY_DIR} /artifacts"
7
+ PATCHES_DIR=" ${MY_DIR} /patches"
7
8
VERSION_INFO_FILE=" ${ARTIFACTS_DIR} /version.txt"
8
9
CACHE_DIR=" ${HOME} /android-archives"
9
10
OS=$( uname -s)
@@ -16,6 +17,7 @@ MACOS_TARGET="10.9"
16
17
17
18
VERSION=" ${1} "
18
19
BINUTILS_DIR_NAME=" binutils-${VERSION} "
20
+ BINUTILS_PATCH_NAME=" binutils-${VERSION} .diff"
19
21
20
22
function die()
21
23
{
@@ -165,6 +167,12 @@ function build()
165
167
166
168
tar xf " ${TARBALL_DEST} "
167
169
170
+ local source_dir=" ${BUILD_DIR} /${BINUTILS_DIR_NAME} "
171
+ local binutils_patch=" ${PATCHES_DIR} /${BINUTILS_PATCH_NAME} "
172
+ if [ -f " ${binutils_patch} " ]; then
173
+ (cd " ${source_dir} " ; patch -p1 < " ${binutils_patch} " )
174
+ fi
175
+
168
176
local configure_host
169
177
170
178
case " ${host} " in
@@ -179,7 +187,6 @@ function build()
179
187
install -d -m 755 " ${build_tree} "
180
188
181
189
local cflags=" -O2 -m64 $( detect_mac_arch_flags) "
182
- local source_dir=" ${BUILD_DIR} /${BINUTILS_DIR_NAME} "
183
190
local enable_gold
184
191
local other_flags
185
192
Original file line number Diff line number Diff line change
1
+ diff -U3 -Narp binutils-2.37.orig/libiberty/rust-demangle.c binutils-2.37/libiberty/rust-demangle.c
2
+ --- binutils-2.37.orig/libiberty/rust-demangle.c 2021-07-15 16:19:46.000000000 +0200
3
+ +++ binutils-2.37/libiberty/rust-demangle.c 2021-07-19 09:50:29.003790488 +0200
4
+ @@ -75,10 +75,10 @@ struct rust_demangler
5
+ int version;
6
+
7
+ /* Recursion depth. */
8
+ - uint recursion;
9
+ + unsigned int recursion;
10
+ /* Maximum number of times demangle_path may be called recursively. */
11
+ #define RUST_MAX_RECURSION_COUNT 1024
12
+ - #define RUST_NO_RECURSION_LIMIT ((uint) -1)
13
+ + #define RUST_NO_RECURSION_LIMIT ((unsigned int) -1)
14
+
15
+ uint64_t bound_lifetime_depth;
16
+ };
You can’t perform that action at this time.
0 commit comments