Skip to content

Commit cb306dd

Browse files
committed
Fix build with rustc 1.85 on fedora
1 parent a7876fe commit cb306dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

genbindings.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -637,8 +637,8 @@ if [ "$CLANGPP" != "" -a "$LLD" != "" ]; then
637637
MANUAL_LINK_CFLAGS="$MANUAL_LINK_CFLAGS -C link-arg=$ARG"
638638
done
639639
# rustc appears to always look for rust-objcopy, though this may be fixed by
640-
# https://github.com/rust-lang/rust/pull/134240 in rust 1.85.
641-
if [ "$RUSTC_MINOR_VERSION" = 84 ]; then
640+
# https://github.com/rust-lang/rust/pull/134240 in rust 1.85 (it is not).
641+
if [ "$RUSTC_MINOR_VERSION" -ge 84 ]; then
642642
mkdir -p objcopy-bin
643643
ln -s `which llvm-objcopy` objcopy-bin/rust-objcopy
644644
PATH="$PATH:$(pwd)/objcopy-bin"

0 commit comments

Comments
 (0)