summaryrefslogtreecommitdiffstats
path: root/third_party/rust/rure/ctest/compile
blob: 6bbf6aed897675f2e760fe8f00ef5c455bd60e77 (plain)
1
2
3
4
5
6
7
8
#!/bin/sh

set -ex

cargo build --manifest-path ../Cargo.toml
gcc -DDEBUG -o test test.c -ansi -Wall -I../include -L../../target/debug -lrure
# If you're using librure.a, then you'll need to link other stuff:
# -lutil -ldl -lpthread -lgcc_s -lc -lm -lrt -lutil -lrure