// This file is part of sidh-rs. // Copyright (c) 2017 Erkan Tairi // See LICENSE for licensing information. // // Author: // - Erkan Tairi // 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"); } } }