ferrox-solver 0.3.12

Iron-forged OR-Tools and HiGHS solvers as Converge Suggestors
Documentation
1
2
3
4
5
6
7
8
9
10
fn main() {
    // Inject rpaths for vendor dylibs so tests can find them at runtime.
    // DEP_*_LIB_DIR is set by highs-sys/ortools-sys build scripts via
    // `cargo:LIB_DIR=...` (propagated because those crates use `links = ...`).
    for dep in ["DEP_HIGHS_LIB_DIR", "DEP_ORTOOLS_LIB_DIR"] {
        if let Ok(lib_dir) = std::env::var(dep) {
            println!("cargo:rustc-link-arg=-Wl,-rpath,{lib_dir}");
        }
    }
}