From 02ac1820b1f5489c9bbe1e6a42c66cd0edf433b4 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Wed, 10 Jun 2020 15:14:51 +0100 Subject: [PATCH] scripts: Ensure musl-gcc is used by musl build "cc" is invoked as part of the Cloud Hypervisor Rust build however due to a copy and paste error the wrong variable was being tested for overriding the CC and the CFLAGS. Signed-off-by: Rob Bradford --- scripts/run_integration_tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/run_integration_tests.sh b/scripts/run_integration_tests.sh index 4b10ee78c..76cb2751a 100755 --- a/scripts/run_integration_tests.sh +++ b/scripts/run_integration_tests.sh @@ -213,7 +213,7 @@ sudo ip tuntap add name vunet-tap1 mode tap multi_queue BUILD_TARGET="$(uname -m)-unknown-linux-${CH_LIBC}" CFLAGS="" TARGET_CC="" -if [[ "$target" == "x86_64-unknown-linux-musl" ]]; then +if [[ "${BUILD_TARGET}" == "x86_64-unknown-linux-musl" ]]; then TARGET_CC="musl-gcc" CFLAGS="-I /usr/include/x86_64-linux-musl/ -idirafter /usr/include/" fi