Skip to content
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

Merged
merged 9 commits into from
Mar 27, 2023
Merged

Changes necessary to run static analysis. #6

merged 9 commits into from
Mar 27, 2023

Conversation

aneksteind
Copy link
Contributor

@aneksteind aneksteind commented Mar 22, 2023

Static analysis may be run by running the committed file run_lighttpd_amalgamated.sh from the c2rust directory.

@aneksteind aneksteind requested a review from kkysen March 22, 2023 22:45
@aneksteind aneksteind requested a review from kkysen March 23, 2023 18:33
Copy link
Contributor

@kkysen kkysen left a 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.

@aneksteind
Copy link
Contributor Author

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

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
@aneksteind aneksteind merged commit 0e55a27 into main Mar 27, 2023
@aneksteind aneksteind deleted the feat.static branch March 27, 2023 23:16
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.

2 participants