Skip to content

Run tests with more versions of libclang #588

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 16, 2017

Conversation

fitzgen
Copy link
Member

@fitzgen fitzgen commented Mar 15, 2017

First, update our existing 3.8.X and 3.9.X libclang testing versions to their latest point releases. Second, add testing on the latest 3.7.X release and the latest 4.0.X release.

r? @emilio

@emilio
Copy link
Contributor

emilio commented Mar 15, 2017

r=me if it passes

@fitzgen fitzgen force-pushed the more-clang-version-testing branch from 50fdafe to 30edebe Compare March 15, 2017 23:52
@fitzgen
Copy link
Member Author

fitzgen commented Mar 16, 2017

Looks like the issue from #585 is in clang 4.0 too:

-pub type IntPoint = PointTyped<f32>;
+pub type IntPoint = PointTyped;

@fitzgen
Copy link
Member Author

fitzgen commented Mar 16, 2017

And it looks like we need to ignore clang's mangled symbols for non-C++ stuff in 3.7.X:

---- header_decl_ptr_to_array_h stdout ----
	diff expected generated
--- expected: "/home/travis/build/servo/rust-bindgen/tests/expectations/tests/decl_ptr_to_array.rs"
+++ generated from: "/home/travis/build/servo/rust-bindgen/tests/headers/decl_ptr_to_array.h"
 /* automatically generated by rust-bindgen */
 
 #![allow(non_snake_case)]
 
 extern "C" {
-    #[link_name = "foo"]
+    #[link_name = "_Z3foo"]
     pub static mut foo: *mut [::std::os::raw::c_int; 1usize];
 }
thread 'header_decl_ptr_to_array_h' panicked at 'Header and binding differ!', /tmp/bindgen/debug/build/bindgen-d3df86004a58a8a1/out/tests.rs:50

@fitzgen
Copy link
Member Author

fitzgen commented Mar 16, 2017

I'm going to allow_failures for 3.7 and 4.0 to get this PR landed, and then do follow ups for getting them passing.

First, update our existing 3.8.X and 3.9.X libclang testing versions to their
latest point releases. Second, add testing on the latest 3.7.X release and the
latest 4.0.X release.
@fitzgen fitzgen force-pushed the more-clang-version-testing branch from 30edebe to b58c3e0 Compare March 16, 2017 17:39
@fitzgen
Copy link
Member Author

fitzgen commented Mar 16, 2017

@bors-servo r=emilio

@bors-servo
Copy link

📌 Commit b58c3e0 has been approved by emilio

@bors-servo
Copy link

⌛ Testing commit b58c3e0 with merge 5452ad0...

bors-servo pushed a commit that referenced this pull request Mar 16, 2017
Run tests with more versions of libclang

First, update our existing 3.8.X and 3.9.X libclang testing versions to their latest point releases. Second, add testing on the latest 3.7.X release and the latest 4.0.X release.

r? @emilio
@bors-servo
Copy link

☀️ Test successful - status-travis
Approved by: emilio
Pushing 5452ad0 to master...

@bors-servo bors-servo merged commit b58c3e0 into rust-lang:master Mar 16, 2017
@fitzgen fitzgen deleted the more-clang-version-testing branch March 16, 2017 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants