Skip to content

Commit a315560

Browse files
committed
target_info.sh: fix libc version retrieving for riscv64
1 parent 2074355 commit a315560

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

xtask/src/target_info.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,9 @@ case "${target}" in
288288
libc=$(max_glibc_version "${libdir}")
289289
fi
290290
;;
291+
riscv64gc-unknown-linux-gnu)
292+
libc="$(dpkg-query --showformat='${Version}' --show libc6-riscv64-cross | cut -d- -f1)"
293+
;;
291294
*-*-linux-gnu*)
292295
toolchain_prefix="${!cc_var//-gcc/}"
293296
libdir="/usr/${toolchain_prefix}/lib"

0 commit comments

Comments
 (0)