From 5abeeda01dd1573c43dba85aa551743bda9e33d6 Mon Sep 17 00:00:00 2001 From: chubei <914745487@qq.com> Date: Mon, 25 Sep 2023 20:58:30 +0800 Subject: [PATCH] fix: Add `BINDGEN_EXTRA_CLANG_ARGS` to cross compile rocksdb --- .github/workflows/release.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index c7be7ae4dc..b227c2d6be 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -126,6 +126,8 @@ jobs: echo 'JEMALLOC_SYS_WITH_LG_PAGE=16' >> $GITHUB_ENV - name: Cargo build uses: actions-rs/cargo@v1 + env: + BINDGEN_EXTRA_CLANG_ARGS: '--sysroot /usr/aarch64-linux-gnu/include/' # https://github.com/rust-lang/rust-bindgen/issues/1229 with: command: build use-cross: false