Debian Codegraph @

third_party/rust/rure/examples/compile

raw
1 #!/bin/sh
2
3 set -ex
4
5 # N.B. Add `--release` flag to `cargo build` to make the example run faster.
6 cargo build --manifest-path ../Cargo.toml
7 gcc -O3 -DDEBUG -o iter iter.c -ansi -Wall -I../include -L../../target/debug -lrure
8 # If you're using librure.a, then you'll need to link other stuff:
9 # -lutil -ldl -lpthread -lgcc_s -lc -lm -lrt -lutil -lrure