scripts: Clear the toolchain environment variables for virtiofsd

virtiofsd must be built with the default gnu toolchain so clear the
environment variables that may poisoned by the alternative C library
support.

Signed-off-by: Rob Bradford <rbradford@rivosinc.com>
This commit is contained in:
Rob Bradford 2023-11-01 09:57:49 +00:00
parent 85ec160fa1
commit 2b607da2b3

View File

@ -42,7 +42,8 @@ build_virtiofsd() {
if [ ! -f "$VIRTIOFSD_DIR/.built" ]; then if [ ! -f "$VIRTIOFSD_DIR/.built" ]; then
pushd $VIRTIOFSD_DIR pushd $VIRTIOFSD_DIR
time cargo build --release rm -rf target/
time RUSTFLAGS="" TARGET_CC="" cargo build --release
cp target/release/virtiofsd "$WORKLOADS_DIR/" || exit 1 cp target/release/virtiofsd "$WORKLOADS_DIR/" || exit 1
touch .built touch .built
popd popd