Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linux-aarch64 no longer allows for 16K page size #28

Merged
merged 5 commits into from
Jun 6, 2023
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions build/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ set -ex
main() {
CARGO="$(builder)"

if is_linux && is_musl; then
# jemalloc doesn't allow 16K page sizes for linux musl
# https://github.com/microsoft/ripgrep-prebuilt/issues/26
JEMALLOC_SYS_WITH_LG_PAGE=14
fi

# Test a normal debug build.
if is_arm || is_aarch64 || is_ppc64le; then
"$CARGO" build --target "$TARGET" --release --features 'pcre2'
if is_linux && is_aarch64 && is_musl; then
andreamah marked this conversation as resolved.
Show resolved Hide resolved
# jemalloc doesn't allow 16K page sizes for linux musl
# https://github.com/microsoft/ripgrep-prebuilt/issues/26
JEMALLOC_SYS_WITH_LG_PAGE=14 "$CARGO" build --target "$TARGET" --release --features 'pcre2'
else
"$CARGO" build --target "$TARGET" --release --features 'pcre2'
fi
# pcre2 is not supported on s390x
# https://github.com/zherczeg/sljit/issues/89
elif is_s390x; then
Expand Down