extern crate cc;
use std::env;
fn main() {
let target = env::var("TARGET").unwrap();
let host = env::var("HOST").unwrap();
if cfg!(target_arch = "x86_64") {
if target.contains("msvc") && host.contains("windows") {
cc::Build::new()
.file("src/backend/x64/amd64/fp_x64.asm")
.file("src/backend/x64/amd64/util_x64.asm")
.compile("sidh_helpers");
} else {
cc::Build::new()
.file("src/backend/x64/amd64/fp_x64.S")
.file("src/backend/x64/amd64/util_x64.S")
.compile("sidh_helpers");
}
}
}