mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-27 03:21:04 +00:00
build: Reorganize target selection
Architectures here with `musl` available are minority, which is more suitable for enumeration. With this change, we are implicitly choosing gnu target for `ppc64le`, `riscv64` and `s390x`. Signed-off-by: Ruoqing He <heruoqing@iscas.ac.cn>
This commit is contained in:
parent
562911e170
commit
ed50e31625
@ -35,11 +35,11 @@ export PATH="${PATH}:${HOME}/.cargo/bin"
|
||||
## this command will not take too long to run.
|
||||
rustup toolchain install ${version}
|
||||
rustup default ${version}
|
||||
if [ "${rustarch}" == "powerpc64le" ] || [ "${rustarch}" == "s390x" ] ; then
|
||||
rustup target add ${rustarch}-unknown-linux-gnu
|
||||
else
|
||||
if [ "${rustarch}" == "x86_64" ] || [ "${rustarch}" == "aarch64" ] ; then
|
||||
rustup target add ${rustarch}-unknown-linux-musl
|
||||
$([ "$(whoami)" != "root" ] && echo sudo) ln -sf /usr/bin/g++ /bin/musl-g++
|
||||
else
|
||||
rustup target add ${rustarch}-unknown-linux-gnu
|
||||
fi
|
||||
rustup component add rustfmt
|
||||
rustup component add clippy
|
||||
|
Loading…
Reference in New Issue
Block a user