Commit cf1b7cec authored by mathieu m's avatar mathieu m Committed by Aske Simon Christensen
Browse files

Library name dependent on target environment

parent b25b3521
extern crate nasm_rs;
fn main() {
#[cfg(not(target_env = "msvc"))]
nasm_rs::compile_library("libadditive.a", &["src/additive.asm"]);
#[cfg(target_env = "msvc")]
nasm_rs::compile_library("additive.lib", &["src/additive.asm"]);
println!("cargo:rustc-link-lib=static=additive");
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment