Skip to content

Commit 4cab8ef

Browse files
committed
Add support for the aarch64 toolchains
1 parent efc951c commit 4cab8ef

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

makefile.cargo

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,15 @@ ifneq ($(HOST),$(TARGET))
2121
$(NULL)
2222
endif
2323

24+
ifeq (aarch64-unknown-linux-gnu,$(TARGET))
25+
# Reset TARGET variable because aarch64 target name used by Rust is not
26+
# the same as the target name needed for the CXX toolchain.
27+
TARGET = aarch64-linux-gnu
28+
CONFIGURE_FLAGS += \
29+
--with-arch=armv8-a \
30+
$(NULL)
31+
endif
32+
2433
ifeq (android,$(findstring android,$(TARGET)))
2534
ifneq (,$(STLPORT_CPPFLAGS))
2635
CONFIGURE_FLAGS += STLPORT_CPPFLAGS="$(STLPORT_CPPFLAGS)"

0 commit comments

Comments
 (0)