Skip to content

Commit

Permalink
Enable sse2 arch flag for libEGL.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdm committed Jun 6, 2019
1 parent 5d9bf86 commit 10b5430
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ fn build_egl(target: &str) {
build.include(fixup_path(file));
}

if target.contains("x86_64") || target.contains("i686") {
build
.flag_if_supported("-msse2") // GNU
.flag_if_supported("-arch:SSE2"); // MSVC
}

let mut cmd = build.get_compiler().to_command();
let out = env::var("OUT_DIR").unwrap();
let out = Path::new(&out);
Expand Down

0 comments on commit 10b5430

Please sign in to comment.