0
0
mirror of https://github.com/tursodatabase/libsql.git synced 2025-07-04 10:13:35 +00:00
Files
libsql/libsql-sqlite3/ext/crr/rs/integration-check/build.rs

27 lines
606 B
Rust

use cc;
use std::process::Command;
fn main() {
let target = if let Ok(profile) = std::env::var("PROFILE") {
match profile.as_str() {
"debug" => "loadable_dbg",
"release" => "loadable",
_ => "loadable",
}
} else {
"loadable"
};
Command::new("make")
.current_dir("../../")
.arg(target)
.status()
.expect("failed to make loadable extension");
cc::Build::new()
.file("../../../../sqlite3.c")
.include("../../../../")
.flag("-DSQLITE_CORE")
.compile("sqlite3");
}