-
Notifications
You must be signed in to change notification settings - Fork 374
Tests failing on macOS with clang error #505
Copy link
Copy link
Open
Description
I'm getting the following error when running tests on macOS:
"clang: error: treating \'c\' input as \'c++\' when in C++ mode, this behavior is deprecated [-Werror,-Wdeprecated]"
Example output:
---- test_associated_in_body stdout ----
Running: "/Users/adamelemental/dev/rust-projects/cbindgen/target/debug/cbindgen" "--lang" "c" "--cpp-compat" "--style" "type" "-o" "/Users/adamelemental/dev/rust-projects/cbindgen/tests/expectations/associated_in_body.compat.c" "--config" "/Users/adamelemental/dev/rust-projects/cbindgen/tests/rust/associated_in_body.toml" "/Users/adamelemental/dev/rust-projects/cbindgen/tests/rust/associated_in_body.rs"
Running: "gcc" "-D" "DEFINED" "-c" "/Users/adamelemental/dev/rust-projects/cbindgen/tests/expectations/associated_in_body.compat.c" "-o" "/var/folders/91/bdq307hd36s8y9g2b8x29b880000gp/T/cbindgen-test-outputcMleTt/associated_in_body.compat.o" "-I" "/Users/adamelemental/dev/rust-projects/cbindgen/tests" "-Wall" "-Werror" "-Wno-attributes" "-D" "CBINDGEN_STYLE_TYPE"
Running: "g++" "-D" "DEFINED" "-c" "/Users/adamelemental/dev/rust-projects/cbindgen/tests/expectations/associated_in_body.compat.c" "-o" "/var/folders/91/bdq307hd36s8y9g2b8x29b880000gp/T/cbindgen-test-outputcMleTt/associated_in_body.compat.o" "-I" "/Users/adamelemental/dev/rust-projects/cbindgen/tests" "-Wall" "-Werror" "-Wno-attributes" "-std=c++17" "-D" "CBINDGEN_STYLE_TYPE"
thread 'test_associated_in_body' panicked at 'Output failed to compile: Output { status: ExitStatus(ExitStatus(256)), stdout: "", stderr: "clang: error: treating \'c\' input as \'c++\' when in C++ mode, this behavior is deprecated [-Werror,-Wdeprecated]\n" }', tests/tests.rs:115:5
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels