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:
parent
656afc8e1b
commit
fb348d91e8
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user