fix: build jemalloc with 64KB pagesize for linux/arm64 (#1270)

This commit is contained in:
三咲雅 · Misaki Masa 2024-07-07 10:27:04 +08:00 committed by sxyazi
parent 11547eefe0
commit 9d0ef9a5dc
No known key found for this signature in database
3 changed files with 18 additions and 13 deletions

View File

@ -13,6 +13,8 @@ body:
- macOS - macOS
- Windows - Windows
- Windows WSL - Windows WSL
- FreeBSD X11
- FreeBSD Wayland
validations: validations:
required: true required: true
- type: input - type: input
@ -22,31 +24,32 @@ body:
placeholder: "ex: kitty v0.32.2" placeholder: "ex: kitty v0.32.2"
validations: validations:
required: true required: true
- type: dropdown
id: tried_main
attributes:
label: Did you try the latest code to see if this problem got fixed?
options:
- Tried, but the problem still
- Not tried, and I'll explain why below
validations:
required: true
- type: textarea - type: textarea
id: debug id: debug
attributes: attributes:
label: "`yazi --debug` output" label: "`yazi --debug` output"
description: Please do a `yazi --debug` and paste the output here. description: Please run `yazi --debug` and paste the debug information here.
value: | value: |
<details> <details>
<!-- Paste the output between the backticks below: -->
```sh ```sh
##### ↓↓↓ Paste the output here: ↓↓↓ #####
``` ```
</details> </details>
validations: validations:
required: true required: true
- type: dropdown
id: tried_main
attributes:
label: Did you try the latest nightly build to see if the problem got fixed?
options:
- Yes, and I updated the debug information above (`yazi --debug`) to the nightly that I tried
- No, and I'll explain why below
validations:
required: true
- type: textarea - type: textarea
id: description id: description
attributes: attributes:

View File

@ -24,7 +24,10 @@ jobs:
- name: Install gcc-aarch64-linux-gnu - name: Install gcc-aarch64-linux-gnu
if: matrix.target == 'aarch64-unknown-linux-gnu' if: matrix.target == 'aarch64-unknown-linux-gnu'
run: sudo apt-get update && sudo apt-get install -yq gcc-aarch64-linux-gnu run: |
sudo apt-get update && sudo apt-get install -yq gcc-aarch64-linux-gnu
echo "JEMALLOC_SYS_WITH_LG_PAGE=16" >> $GITHUB_ENV
echo "CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=/usr/bin/aarch64-linux-gnu-gcc" >> $GITHUB_ENV
- name: Build - name: Build
run: ./scripts/build.sh ${{ matrix.target }} run: ./scripts/build.sh ${{ matrix.target }}

View File

@ -3,7 +3,6 @@ set -euo pipefail
export ARTIFACT_NAME="yazi-$1" export ARTIFACT_NAME="yazi-$1"
export YAZI_GEN_COMPLETIONS=1 export YAZI_GEN_COMPLETIONS=1
export CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=/usr/bin/aarch64-linux-gnu-gcc
# Setup Rust toolchain # Setup Rust toolchain
if [[ "$1" == *-musl ]]; then if [[ "$1" == *-musl ]]; then