#!/bin/sh
RUSTC=~/src/rust-git/b/x86_64-unknown-linux-gnu/stage2/bin/rustc
#export LD_LIBRARY_PATH=~/tmp/rust-nightly-x86_64-unknown-linux-gnu/lib
#RUSTC="$HOME/tmp/rust-nightly-x86_64-unknown-linux-gnu/bin/rustc"
#RUSTC=rustc
rm -f *.o bindgen *.so
$RUSTC -C prefer-dynamic src/lib.rs
$RUSTC -L . -C rpath src/bin/bindgen.rs