-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.rs
21 lines (20 loc) · 856 Bytes
/
build.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
extern crate cc;
fn main() {
println!("cargo:rerun-if-changed=src/julia-xmm-f32-packed.S");
println!("cargo:rerun-if-changed=src/julia-xmm-f32-scalar.S");
println!("cargo:rerun-if-changed=src/julia-xmm-f64-packed.S");
println!("cargo:rerun-if-changed=src/julia-xmm-f64-scalar.S");
println!("cargo:rerun-if-changed=src/julia-ymm-f32-packed.S");
println!("cargo:rerun-if-changed=src/julia-ymm-f64-packed.S");
cc::Build::new()
.flag("-Wa,-mmnemonic=intel")
.flag("-Wa,-msyntax=intel")
.flag("-Wa,-mnaked-reg")
.file("src/julia-xmm-f32-packed.S")
.file("src/julia-xmm-f32-scalar.S")
.file("src/julia-xmm-f64-packed.S")
.file("src/julia-xmm-f64-scalar.S")
.file("src/julia-ymm-f32-packed.S")
.file("src/julia-ymm-f64-packed.S")
.compile("juliaasm");
}