-
Notifications
You must be signed in to change notification settings - Fork 2
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
Changes necessary to run static analysis. #6
Conversation
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.
Can you include the latest command you're using to run c2rust-analyze
? Just in the PR description is good probably. I think some of the extern crate
and #[macro_use]
stuff actually isn't necessary if you specify --edition 2021
.
The commit message has the latest but I'll update it if I find another better way |
f86eab6
to
dbb8cab
Compare
Static analysis may be run with cargo run --bin c2rust-analyze -- \ ~/lighttpd-rust/lighttpd_rust_amalgamated/src/lighttpd_amalgamated.rs \ -L "$(rustc --print sysroot)/lib/rustlib/x86_64-unknown-linux-gnu/lib" \ --crate-type rlib -L dependency=~/lighttpd-rust/lighttpd_rust_amalgamated/target/debug/deps \ --extern c2rust_bitfields=~/lighttpd-rust/lighttpd_rust_amalgamated/target/debug/deps/libc2rust_bitfields-ad75552e399b49e8.rlib \ --extern c2rust_bitfields_derive=~/lighttpd-rust/lighttpd_rust_amalgamated/target/debug/deps/libc2rust_bitfields_derive-42f67e731d9c763d.so \ --extern libc=~/lighttpd-rust/lighttpd_rust_amalgamated/target/debug/deps/liblibc-6fc9a51e0719cc75.rlib \ --extern lighttpd_rust_amalgamated=~/lighttpd-rust/lighttpd_rust_amalgamated/target/debug/deps/liblighttpd_rust_amalgamated-dbc2770d8f27d574.rlib
Static analysis may be run by running the committed file
run_lighttpd_amalgamated.sh
from the c2rust directory.