Skip to content

Commit aec654b

Browse files
chore: make update-bindings.sh PWD agnostic
1 parent fafd233 commit aec654b

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
#!/usr/bin/env bash
22
set -euo pipefail
33

4-
bindgen ../instrument-hooks/includes/core.h \
5-
-o bindings.rs \
4+
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
5+
6+
bindgen "$SCRIPT_DIR/../../instrument-hooks/includes/core.h" \
7+
-o "$SCRIPT_DIR/bindings.rs" \
68
--rust-target 1.74 \
79
--allowlist-function "instrument_hooks_.*" \
8-
--allowlist-var "MARKER_TYPE_.*"
10+
--allowlist-var "MARKER_TYPE_.*" \
11+
--allowlist-type "instrument_hooks_feature_t"

0 commit comments

Comments
 (0)