Skip to content

Commit

Permalink
Bug 1602514 - Build Rust SpiderMonkey bindings in C++17 mode. r=froydnj
Browse files Browse the repository at this point in the history
Differential Revision: https://phabricator.services.mozilla.com/D56697

--HG--
extra : moz-landing-system : lando
  • Loading branch information
sigiesec committed Dec 11, 2019
1 parent 97827be commit f3fc79d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/rust/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ else()
add_definitions(-Wno-c++0x-extensions -Wno-return-type-c-linkage -Wno-invalid-offsetof)
endif()
add_definitions(-fPIC -fno-rtti)
add_definitions(-std=c++14)
add_definitions(-std=gnu++17)
add_definitions(-include $ENV{DEP_MOZJS_OUTDIR}/js/src/js-confdefs.h)
endif()

Expand Down
2 changes: 1 addition & 1 deletion js/rust/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ 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=gnu++14",
"-std=gnu++17",
"-fno-sized-deallocation",
"-fno-aligned-new",
"-DRUST_BINDGEN",
Expand Down

0 comments on commit f3fc79d

Please sign in to comment.