Use HOST_CARGO variable for compiling binaries on the host

This commit is contained in:
Jeremy Soller 2022-07-26 12:05:53 -06:00
commit 85d75b7681
No known key found for this signature in database
GPG key ID: 87F211AF2BE4C2FE

View file

@ -3,8 +3,8 @@ INITFS_RM_BINS=\
redoxfs-mkfs
build/initfs.img: initfs.toml prefix
cargo build --manifest-path cookbook/Cargo.toml --release
cargo build --manifest-path installer/Cargo.toml --release
$(HOST_CARGO) build --manifest-path cookbook/Cargo.toml --release
$(HOST_CARGO) build --manifest-path installer/Cargo.toml --release
rm -rf build/initfs
mkdir -p build/initfs
$(INSTALLER) -c $< build/initfs/