Change std=c++11 to std=c++17 to support inline variables.

The inline variables feature is used by the associated_in_body test.
This commit is contained in:
John VanEnk 2020-01-23 22:36:04 -08:00 committed by Emilio Cobos Álvarez
parent 656afc8e1b
commit fb348d91e8

View File

@ -74,7 +74,8 @@ fn compile(cbindgen_output: &Path, language: Language) {
command.arg("-o").arg(&object);
if let Language::Cxx = language {
// enum class is a c++11 extension which makes g++ on macos 10.14 error out
command.arg("-std=c++11");
// inline variables are are a c++17 extension
command.arg("-std=c++17");
}
println!("Running: {:?}", command);