-
Notifications
You must be signed in to change notification settings - Fork 294
Restore cross checking code, part 1 #1575
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
Conversation
This reverts commit 32361f7.
1b3ac45 to
9731c3a
Compare
thedataking
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
kkysen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't we need to add cross-checks either to members or exclude in the top-level Cargo.toml?
| out_items.push( | ||
| mk().single_attr("macro_use") | ||
| .extern_crate_item("c2rust_xcheck_derive", None), | ||
| ); | ||
| out_items.push( | ||
| mk().single_attr("macro_use") | ||
| .extern_crate_item("c2rust_xcheck_runtime", None), | ||
| ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need #[macro_use]s anymore.
| #ifndef CROSS_CHECKS_H | ||
| #define CROSS_CHECKS_H | ||
|
|
||
| #pragma once |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need both of these?
| [dependencies.c2rust-xcheck-plugin] | ||
| version = "*" | ||
|
|
||
| [dependencies.c2rust-xcheck-derive] | ||
| version = "*" | ||
|
|
||
| [dependencies.c2rust-xcheck-runtime] | ||
| version = "*" | ||
| features = ["libc-hash", "fixed-length-array-hash"] | ||
|
|
||
| [dependencies.c2rust-xcheck-backend-{{cross_check_backend}}] | ||
| version = "*" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| [dependencies.c2rust-xcheck-plugin] | |
| version = "*" | |
| [dependencies.c2rust-xcheck-derive] | |
| version = "*" | |
| [dependencies.c2rust-xcheck-runtime] | |
| version = "*" | |
| features = ["libc-hash", "fixed-length-array-hash"] | |
| [dependencies.c2rust-xcheck-backend-{{cross_check_backend}}] | |
| version = "*" | |
| c2rust-xcheck-plugin = "*" | |
| c2rust-xcheck-derive = "*" | |
| c2rust-xcheck-runtime = { version = "*", features = ["libc-hash", "fixed-length-array-hash"] } | |
| c2rust-xcheck-backend-{{cross_check_backend}} = "*" |
Also, what's the reason for "*" instead of a specific version?
| version = "0.9.0" | ||
| edition = "2018" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we update these?
| # clang 3.6.0 is known to work; 3.4.0 known to not work. | ||
| ensure_clang_version([3, 6, 0]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you test on a more recent clang? Pretty sure we don't support anything anywhere near this old anymore.
No description provided.