Do not build host prefix for MacOS Podman build

This commit is contained in:
Wildan Mubarok 2025-06-29 18:20:47 +00:00 committed by Jeremy Soller
parent 0081eabd10
commit f865aa3866

View File

@ -37,11 +37,15 @@ CONTAINERFILE?=podman/redox-base-containerfile
# Per host variables
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)
# The binary prefix is only built for x86_64 Linux hosts
PREFIX_BINARY=0
endif
endif
UNAME := $(shell uname)
ifeq ($(UNAME),Darwin)
FUMOUNT=umount
@ -65,13 +69,6 @@ else
VBM=VBoxManage
endif
ifneq ($(UNAME),Linux)
PREFIX_BINARY=0
endif
ifneq ($(HOST_ARCH),x86_64)
PREFIX_BINARY=0
endif
# Automatic variables
ROOT=$(CURDIR)
export RUST_COMPILER_RT_ROOT=$(ROOT)/rust/src/llvm-project/compiler-rt