Skip to content

Commit 8938587

Browse files
committed
[rust] Disable neon in aarch64 builds
Ensure that the generated aarch64 rust code does not make use of floating point registers, pass this option in vai RUSTCFLAGS variable. This will need more general support to add other architectures. Signed-off-by: David Brown <david.brown@linaro.org>
1 parent 9864f91 commit 8938587

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/rust_support/rules.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ $(CARGO_CONFIG): $(CARGO_CONFIG).phony
8585
echo "# AUTOGENERATED -- edit $(MODULE_SRCDIR)/rules.mk instead"; \
8686
echo "[build]"; \
8787
echo 'target = "$(RUST_TARGET_PATH)"'; \
88+
echo 'rustflags = [ "-Ctarget-feature=-neon"]'; \
8889
echo; \
8990
echo "[env]"; \
9091
echo 'GLOBAL_INCLUDES = { value = "$(call TOML_ESC,$(GLOBAL_INCLUDES))", force = true }'; \

0 commit comments

Comments
 (0)