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

set -ex

# N.B. Add `--release` flag to `cargo build` to make the example run faster.
cargo build --manifest-path ../Cargo.toml
gcc -O3 -DDEBUG -o iter iter.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