@@ -553,14 +553,17 @@ jobs:
553553 # This target only needs to support 11.0 and up as nothing else supports the hardware
554554 - name : dist-aarch64-apple
555555 env :
556- SCRIPT : ./x.py dist bootstrap --include-default-paths --host=aarch64-apple-darwin --target=aarch64-apple-darwin
556+ SCRIPT : ./x.py dist bootstrap --include-default-paths --stage 2
557557 RUST_CONFIGURE_ARGS : >-
558+ --build=x86_64-apple-darwin
559+ --host=aarch64-apple-darwin
560+ --target=aarch64-apple-darwin
558561 --enable-full-tools
559562 --enable-sanitizers
560563 --enable-profiler
564+ --disable-docs
561565 --set rust.jemalloc
562566 --set llvm.ninja=false
563- --set rust.lto=thin
564567 RUSTC_RETRY_LINKER_ON_SEGFAULT : 1
565568 SELECT_XCODE : /Applications/Xcode_13.4.1.app
566569 USE_XCODE_CLANG : 1
@@ -570,13 +573,24 @@ jobs:
570573 NO_DEBUG_ASSERTIONS : 1
571574 NO_OVERFLOW_CHECKS : 1
572575 DIST_REQUIRE_ALL_TOOLS : 1
573- << : *job-macos-m1
576+ # Corresponds to 16K page size
577+ #
578+ # Shouldn't be needed if jemalloc-sys is updated to
579+ # handle this platform like iOS or if we build on
580+ # aarch64-apple-darwin itself.
581+ #
582+ # https://github.com/gnzlbg/jemallocator/blob/c27a859e98e3cb790dc269773d9da71a1e918458/jemalloc-sys/build.rs#L237
583+ JEMALLOC_SYS_WITH_LG_PAGE : 14
584+ << : *job-macos-xl
574585
575586 # This target only needs to support 11.0 and up as nothing else supports the hardware
576587 - name : aarch64-apple
577588 env :
578- SCRIPT : ./x.py --stage 2 test --host=aarch64-apple-darwin --target=aarch64-apple-darwin
589+ SCRIPT : ./x.py --stage 2 test
579590 RUST_CONFIGURE_ARGS : >-
591+ --build=x86_64-apple-darwin
592+ --host=aarch64-apple-darwin
593+ --target=aarch64-apple-darwin
580594 --enable-sanitizers
581595 --enable-profiler
582596 --set rust.jemalloc
@@ -589,7 +603,15 @@ jobs:
589603 NO_LLVM_ASSERTIONS : 1
590604 NO_DEBUG_ASSERTIONS : 1
591605 NO_OVERFLOW_CHECKS : 1
592- << : *job-macos-m1
606+ # Corresponds to 16K page size
607+ #
608+ # Shouldn't be needed if jemalloc-sys is updated to
609+ # handle this platform like iOS or if we build on
610+ # aarch64-apple-darwin itself.
611+ #
612+ # https://github.com/gnzlbg/jemallocator/blob/c27a859e98e3cb790dc269773d9da71a1e918458/jemalloc-sys/build.rs#L237
613+ JEMALLOC_SYS_WITH_LG_PAGE : 14
614+ << : *job-macos-xl
593615
594616 # #####################
595617 # Windows Builders #
0 commit comments