Skip to content

Commit 3714bd6

Browse files
committed
Generate bindings for armv7a
This reimplements jimblandy#31 using the new regenerate.sh. It makes some guesses as to what the correct target arch is, but I don't think it does anything unreasonable here.
1 parent d4f1127 commit 3714bd6

3 files changed

Lines changed: 3856 additions & 3 deletions

File tree

perf-event-open-sys/regenerate.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ fi
6363
function gen_bindings {
6464
arch="$1"
6565
linux_arch="${2:-$arch}"
66-
clang_arch="${3:-$arch}"
66+
clang_triple="${3:-${arch}-unknown-linux-gnu}"
6767

6868
bindings="$target/$arch/bindings.rs"
6969

@@ -76,7 +76,7 @@ function gen_bindings {
7676
cd "$scriptdir"
7777

7878
CLANG_ARGS=(
79-
-target "$clang_arch-unknown-linux-gnu"
79+
-target "$clang_triple"
8080
-nostdlibinc
8181
-isystem "$target/$arch/include"
8282
)
@@ -121,4 +121,5 @@ echo "$version" > src/version
121121

122122
gen_bindings x86_64
123123
gen_bindings aarch64 arm64
124-
gen_bindings riscv64gc riscv riscv64
124+
gen_bindings riscv64gc riscv riscv64-unknown-linux-gnu
125+
gen_bindings armv7 arm armv7a-non-linux-gnueabi

0 commit comments

Comments
 (0)