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