mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-01 17:35:19 +00:00
ci: AArch64: Add a build stage for musl toolchain
This commit adds required environment configurations to the `dev_cli.sh` and a Jenkins stage to enable AArch64 binary building using musl toolchain. Signed-off-by: Henry Wang <Henry.Wang@arm.com>
This commit is contained in:
parent
e81402e76e
commit
5a2ff98917
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
@ -83,6 +83,11 @@ pipeline{
|
||||
sh "scripts/dev_cli.sh build --release"
|
||||
}
|
||||
}
|
||||
stage ('Build for musl') {
|
||||
steps {
|
||||
sh "scripts/dev_cli.sh build --release --libc musl"
|
||||
}
|
||||
}
|
||||
stage ('Run unit tests') {
|
||||
steps {
|
||||
sh "scripts/dev_cli.sh tests --unit"
|
||||
|
@ -208,7 +208,7 @@ cmd_build() {
|
||||
|
||||
rustflags=""
|
||||
if [ $(uname -m) = "aarch64" ] && [ $libc = "musl" ] ; then
|
||||
rustflags="-C link-arg=-lgcc"
|
||||
rustflags="-C link-arg=-lgcc -C link_arg=-specs -C link_arg=/usr/lib/aarch64-linux-musl/musl-gcc.specs"
|
||||
fi
|
||||
|
||||
# A workaround on Arm64 to avoid build errors in kvm-bindings
|
||||
|
Loading…
x
Reference in New Issue
Block a user