mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-17 23:44:17 +08:00
Do not build host prefix for MacOS Podman build
This commit is contained in:
parent
0081eabd10
commit
f865aa3866
11
mk/config.mk
11
mk/config.mk
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user