Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
7 changes: 4 additions & 3 deletions perf-event-open-sys/regenerate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ fi
function gen_bindings {
arch="$1"
linux_arch="${2:-$arch}"
clang_arch="${3:-$arch}"
clang_triple="${3:-${arch}-unknown-linux-gnu}"

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

Expand All @@ -76,7 +76,7 @@ function gen_bindings {
cd "$scriptdir"

CLANG_ARGS=(
-target "$clang_arch-unknown-linux-gnu"
-target "$clang_triple"
-nostdlibinc
-isystem "$target/$arch/include"
)
Expand Down Expand Up @@ -121,4 +121,5 @@ echo "$version" > src/version

gen_bindings x86_64
gen_bindings aarch64 arm64
gen_bindings riscv64gc riscv riscv64
gen_bindings riscv64gc riscv riscv64-unknown-linux-gnu
gen_bindings armv7 arm armv7a-non-linux-gnueabi
Loading
Loading