From fb348d91e837c7a9e0eb442a40885e259f20ce3f Mon Sep 17 00:00:00 2001 From: John VanEnk Date: Thu, 23 Jan 2020 22:36:04 -0800 Subject: [PATCH] Change std=c++11 to std=c++17 to support inline variables. The inline variables feature is used by the associated_in_body test. --- tests/tests.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/tests.rs b/tests/tests.rs index fe6ab4c..8c0b2ba 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -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);