Set use PREFIX_RUSTC when using PREFIX_BINARY

This commit is contained in:
Jeremy Soller 2019-04-20 10:37:26 -06:00
parent b1199b900f
commit 344f9b3044
No known key found for this signature in database
GPG key ID: E988B49EE78A7FB1
2 changed files with 6 additions and 7 deletions

View file

@ -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