require c++11 to run the test suite

fixes #330
This commit is contained in:
Alexis Beingessner 2019-05-10 17:58:52 -04:00
parent 4287fbe909
commit ee2af57499

View File

@ -71,6 +71,10 @@ fn compile(cbindgen_output: &Path, language: Language) {
command.arg("-D").arg("DEFINED");
command.arg("-c").arg(cbindgen_output);
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");
}
println!("Running: {:?}", command);
let out = command.output().expect("failed to compile");