Skip to content
This repository was archived by the owner on Nov 12, 2022. It is now read-only.

Allow a custom path to bindgen in etc/bindings.sh #288

Merged
merged 1 commit into from
Aug 22, 2016
Merged
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
10 changes: 9 additions & 1 deletion etc/bindings.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,15 @@ if [[ "$1" == "msvc14" ]] ; then
EXTRA_FLAGS="$EXTRA_FLAGS -fvisibility=hidden"
fi

../../rust-bindgen/target/debug/bindgen \
: ${BINDGEN:=../../rust-bindgen/target/debug/bindgen}

if [[ ! -x "$BINDGEN" ]]; then
echo "error: BINDGEN does not exist or isn't executable!"
echo "error: with BINDGEN=$BINDGEN"
exit 1
fi

$BINDGEN \
${EXTRA_FLAGS} \
-no-class-constants \
-no-type-renaming \
Expand Down