Set HOST_TARGET and adjust PREFIX_BINARY for podman host

This commit is contained in:
Jeremy Soller 2025-10-21 11:53:10 -06:00
parent a4133e45d0
commit 41ca0bea4c
No known key found for this signature in database
GPG Key ID: 670FDFB5428E05CA

View File

@ -44,13 +44,11 @@ CONTAINERFILE?=podman/redox-base-containerfile
export NPROC=nproc
export REDOX_MAKE=make
ifneq ($(PODMAN_BUILD),1)
HOST_TARGET := $(shell env -u RUSTUP_TOOLCHAIN rustc -vV | grep host | cut -d: -f2 | tr -d " ")
ifneq ($(HOST_TARGET),x86_64-unknown-linux-gnu)
$(info The binary prefix is only built for x86_64 Linux hosts)
PREFIX_BINARY=0
endif
endif
ifeq ($(SCCACHE_BUILD),1)
ifeq (,$(shell command -v sccache))