diff --git a/js/rust/build.rs b/js/rust/build.rs index af8de6969d8c..d5ae2efc572f 100644 --- a/js/rust/build.rs +++ b/js/rust/build.rs @@ -143,7 +143,8 @@ const UNSAFE_IMPL_SYNC_TYPES: &'static [&'static str] = &[ /// Flags passed through bindgen directly to Clang. const EXTRA_CLANG_FLAGS: &'static [&'static str] = &[ "-x", "c++", - "-std=c++14", + "-std=gnu++14", + "-fno-sized-deallocation", "-DRUST_BINDGEN", ]; diff --git a/layout/style/ServoBindings.toml b/layout/style/ServoBindings.toml index aafd633fd1df..497007aafed1 100644 --- a/layout/style/ServoBindings.toml +++ b/layout/style/ServoBindings.toml @@ -1,6 +1,6 @@ [build] args = [ - "-x", "c++", "-std=c++14", + "-x", "c++", "-std=c++14", "-fno-sized-deallocation", "-DTRACING=1", "-DIMPL_LIBXUL", "-DMOZ_STYLO_BINDINGS=1", "-DMOZILLA_INTERNAL_API", "-DRUST_BINDGEN", "-DMOZ_STYLO" ]