Skip to content

Commit 25b331f

Browse files
feat: make the update bindings script PWD agnostic
1 parent 8637676 commit 25b331f

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
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_.*" \
810
--allowlist-var "MARKER_TYPE_.*"

0 commit comments

Comments
 (0)