Skip to content

Commit eb0c996

Browse files
committed
Configure jemalloc for cross-compilation to aarch64-apple-darwin
1 parent 5ae5b0e commit eb0c996

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.github/workflows/ci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,7 @@ jobs:
315315
NO_LLVM_ASSERTIONS: 1
316316
NO_DEBUG_ASSERTIONS: 1
317317
DIST_REQUIRE_ALL_TOOLS: 1
318+
JEMALLOC_SYS_WITH_LG_PAGE: 14
318319
os: macos-latest
319320
- name: x86_64-msvc-1
320321
env:

src/ci/github-actions/ci.yml

+8
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,14 @@ jobs:
482482
NO_LLVM_ASSERTIONS: 1
483483
NO_DEBUG_ASSERTIONS: 1
484484
DIST_REQUIRE_ALL_TOOLS: 1
485+
# Corresponds to 16K page size
486+
#
487+
# Shouldn't be needed if jemalloc-sys is updated to
488+
# handle this platform like iOS or if we build on
489+
# aarch64-apple-darwin itself.
490+
#
491+
# https://github.com/gnzlbg/jemallocator/blob/c27a859e98e3cb790dc269773d9da71a1e918458/jemalloc-sys/build.rs#L237
492+
JEMALLOC_SYS_WITH_LG_PAGE: 14
485493
<<: *job-macos-xl
486494

487495
######################

0 commit comments

Comments
 (0)