mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-24 13:54:19 +08:00
Set use PREFIX_RUSTC when using PREFIX_BINARY
This commit is contained in:
parent
b1199b900f
commit
344f9b3044
@ -6,12 +6,7 @@ INSTALLER_FLAGS?=--cookbook=cookbook
|
||||
## Enabled to use binary prefix (much faster)
|
||||
PREFIX_BINARY?=1
|
||||
## Enabled to build custom rustc
|
||||
ifeq ($(ARCH),aarch64)
|
||||
# aarch64 requires rustc prefix
|
||||
PREFIX_RUSTC?=1
|
||||
else
|
||||
PREFIX_RUSTC?=0
|
||||
endif
|
||||
PREFIX_RUSTC?=1
|
||||
## Filesystem size in MB (256 is the default)
|
||||
FILESYSTEM_SIZE?=256
|
||||
|
||||
|
||||
@ -6,7 +6,11 @@ PREFIX_INSTALL=$(PREFIX)/relibc-install
|
||||
|
||||
ifeq ($(PREFIX_RUSTC),1)
|
||||
PREFIX_BASE_INSTALL=$(PREFIX)/rust-freestanding-install
|
||||
export RUSTUP_TOOLCHAIN=$(ROOT)/$(PREFIX)/rust-freestanding-install
|
||||
ifeq ($(PREFIX_BINARY),1)
|
||||
export RUSTUP_TOOLCHAIN=$(ROOT)/$(PREFIX)/gcc-install
|
||||
else
|
||||
export RUSTUP_TOOLCHAIN=$(ROOT)/$(PREFIX)/rust-freestanding-install
|
||||
endif
|
||||
endif
|
||||
|
||||
PREFIX_BASE_PATH=$(ROOT)/$(PREFIX_BASE_INSTALL)/bin
|
||||
|
||||
Loading…
Reference in New Issue
Block a user