Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,10 @@ fn main() -> Result<(), Box<dyn Error>> {
let derive_casted_constant = DeriveCastedConstant::new().target("SCIP_INVALID");

let builder = builder
// SCIP 10 annotates the deprecated `SCIP_VARTYPE_IMPLINT` enumerator with
// `SCIP_DEPRECATED`. On Windows that expands to `__declspec(deprecated)`,
// which clang cannot parse inside an enum; neutralize the macro for bindgen.
.clang_arg("-DSCIP_DEPRECATED=")
.blocklist_item("FP_NAN")
.blocklist_item("FP_INFINITE")
.blocklist_item("FP_ZERO")
Expand Down
5 changes: 3 additions & 2 deletions bundled.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,11 @@ pub fn download_scip() {

// TODO: enable this when debug builds are available
// let url = format!(
// "https://github.com/scipopt/scipoptsuite-deploy/releases/download/v0.9.0/libscip-{os_string}{debug_str}.zip",
// "https://github.com/scipopt/scipoptsuite-deploy/releases/download/v0.12.0/libscip-{os_string}{debug_str}.zip",
// );
// v0.12.0 ships SCIP 10.0.2 / SoPlex 8.0.2 / GCG 4.0.2 / IPOPT 3.14.19.
let url = format!(
"https://github.com/scipopt/scipoptsuite-deploy/releases/download/v0.9.0/libscip-{os_string}.zip",
"https://github.com/scipopt/scipoptsuite-deploy/releases/download/v0.12.0/libscip-{os_string}.zip",
);

download_and_extract_zip(&url, &extract_path)
Expand Down
Loading