diff --git a/Cargo.toml b/Cargo.toml index c9e47222b..977a78776 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mozangle" -version = "0.3.1" +version = "0.3.2" authors = ["The ANGLE Project Authors", "The Servo Project Developers"] license = " BSD-3-Clause" description = "Mozilla’s fork of Google ANGLE, repackaged as a Rust crate " diff --git a/build.rs b/build.rs index 4ca7522c3..a966b07eb 100644 --- a/build.rs +++ b/build.rs @@ -176,6 +176,7 @@ fn build_angle() { .file("src/shaders/glslang-c.cpp") .cpp(true) .warnings(false) + .flag_if_supported("-xc++") .flag_if_supported("-std=c++14") .flag_if_supported("/wd4100") .flag_if_supported("/wd4127")