Skip to content

Commit

Permalink
armv5 rust version frozen for no-atomic support (#6108)
Browse files Browse the repository at this point in the history
* armv5 rust version frozen for no-atomic support
  • Loading branch information
th0ma7 authored May 30, 2024
1 parent b896cd2 commit 18f68fb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions mk/spksrc.cross-rust-env.mk
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ RUSTUP_DEFAULT_TOOLCHAIN_STAGE = 2

# map archs to rust targets
ifeq ($(findstring $(RUST_ARCH), $(ARMv5_ARCHS)),$(RUST_ARCH))
RUSTUP_DEFAULT_TOOLCHAIN = 1.77.2
RUST_TARGET = armv5te-unknown-linux-gnueabi
endif
ifeq ($(findstring $(RUST_ARCH), $(ARMv7_ARCHS)),$(RUST_ARCH))
Expand Down
4 changes: 2 additions & 2 deletions mk/spksrc.tc-rust.mk
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ rust_toml:
echo "compiler-docs = false" ; \
echo
@echo "[rust]" ; \
echo 'channel = "stable"' ; \
echo 'channel = "$(RUSTUP_DEFAULT_TOOLCHAIN)"' ; \
echo 'lto = "off"' ; \
echo
@echo "[llvm]" ; \
Expand Down Expand Up @@ -104,7 +104,7 @@ rustc_target: $(PRE_RUSTC_TARGET) $(TC_LOCAL_VARS_RUST)
flock -u 5
ifeq ($(TC_RUSTUP_TOOLCHAIN),$(RUSTUP_DEFAULT_TOOLCHAIN))
@$(MSG) "rustup target add $(RUST_TARGET)"
rustup override set stable
rustup override set $(RUSTUP_DEFAULT_TOOLCHAIN)
rustup target add $(RUST_TARGET)
rustup show
else
Expand Down
4 changes: 1 addition & 3 deletions mk/spksrc.tc.mk
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ include ../../mk/spksrc.common.mk
### Include common rules
include ../../mk/spksrc.common-rules.mk

# Include ross-rust-env.mk to generate install its toolchain
include ../../mk/spksrc.cross-rust-env.mk

# Include cross-cmake-env.mk to generate its toolchain file
Expand All @@ -19,9 +20,6 @@ include ../../mk/spksrc.cross-cmake-env.mk
# Include cross-meson-env.mk to generate its toolchain file
include ../../mk/spksrc.cross-meson-env.mk

##### rust specific configurations
include ../../mk/spksrc.cross-rust-env.mk

# Configure the included makefiles
URLS = $(TC_DIST_SITE)/$(TC_DIST_NAME)
NAME = $(TC_NAME)
Expand Down

0 comments on commit 18f68fb

Please sign in to comment.