Skip to content

Commit 38ca8e4

Browse files
author
bors-servo
authored
Auto merge of #165 - fabricedesre:aarch64-support, r=jdm
Add support for the aarch64 toolchains <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/mozjs/165) <!-- Reviewable:end -->
2 parents efc951c + 4cab8ef commit 38ca8e4

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)