AFLplusplus / unicornafl

AFL bindings for Unicorn-Engine
Apache License 2.0
66 stars 32 forks source link

Cargo recompiles unicornafl every time #2

Closed FelixBrakel closed 2 years ago

FelixBrakel commented 2 years ago

When adding unicornafl to the cargo dependencies in the following way:

[dependencies]
unicornafl = { git = "https://github.com/AFLplusplus/unicornafl", version="1.1.0" }

It causes unicornafl to be recompiled every time. Possibly a mistake in the build.rs or maybe an error in cargo?

wtdcode commented 2 years ago

Sorry for my late reply. The rust bindings of unicornafl needs some polish indeed.

FelixBrakel commented 2 years ago

I ended up creating my own fork and commenting out the line

println!("cargo:rerun-if-changed=unicornafl");

in build.rs, which seemed to fix the issue.

Of course I have no idea if there are any side effects to removing this line but as a quick fix people can just use my fork.

domenukk commented 2 years ago

Fixed with #14