parent
74783c2027
commit
f17e49e9aa
@ -28,7 +28,8 @@
|
|||||||
clippy::missing_panics_doc,
|
clippy::missing_panics_doc,
|
||||||
clippy::missing_docs_in_private_items,
|
clippy::missing_docs_in_private_items,
|
||||||
clippy::module_name_repetitions,
|
clippy::module_name_repetitions,
|
||||||
clippy::ptr_cast_constness
|
clippy::ptr_cast_constness,
|
||||||
|
clippy::negative_feature_names
|
||||||
)]
|
)]
|
||||||
#![cfg_attr(not(test), warn(
|
#![cfg_attr(not(test), warn(
|
||||||
missing_debug_implementations,
|
missing_debug_implementations,
|
||||||
|
@ -58,6 +58,9 @@ fn main() {
|
|||||||
|
|
||||||
let mut sancov_cmp = cc::Build::new();
|
let mut sancov_cmp = cc::Build::new();
|
||||||
|
|
||||||
|
#[cfg(unix)]
|
||||||
|
sancov_cmp.flag("-Wno-sign-compare");
|
||||||
|
|
||||||
#[cfg(feature = "sancov_value_profile")]
|
#[cfg(feature = "sancov_value_profile")]
|
||||||
{
|
{
|
||||||
sancov_cmp.define("SANCOV_VALUE_PROFILE", "1");
|
sancov_cmp.define("SANCOV_VALUE_PROFILE", "1");
|
||||||
@ -150,11 +153,25 @@ fn main() {
|
|||||||
println!("cargo:rerun-if-changed=src/cmplog.h");
|
println!("cargo:rerun-if-changed=src/cmplog.h");
|
||||||
println!("cargo:rerun-if-changed=src/cmplog.c");
|
println!("cargo:rerun-if-changed=src/cmplog.c");
|
||||||
|
|
||||||
|
#[cfg(unix)]
|
||||||
|
{
|
||||||
|
cc::Build::new()
|
||||||
|
.flag("-Wno-pointer-sign") // UNIX ONLY FLAGS
|
||||||
|
.flag("-Wno-sign-compare")
|
||||||
|
.define("CMPLOG_MAP_W", Some(&*format!("{cmplog_map_w}")))
|
||||||
|
.define("CMPLOG_MAP_H", Some(&*format!("{cmplog_map_h}")))
|
||||||
|
.file(src_dir.join("cmplog.c"))
|
||||||
|
.compile("cmplog");
|
||||||
|
}
|
||||||
|
|
||||||
|
#[cfg(not(unix))]
|
||||||
|
{
|
||||||
cc::Build::new()
|
cc::Build::new()
|
||||||
.define("CMPLOG_MAP_W", Some(&*format!("{cmplog_map_w}")))
|
.define("CMPLOG_MAP_W", Some(&*format!("{cmplog_map_w}")))
|
||||||
.define("CMPLOG_MAP_H", Some(&*format!("{cmplog_map_h}")))
|
.define("CMPLOG_MAP_H", Some(&*format!("{cmplog_map_h}")))
|
||||||
.file(src_dir.join("cmplog.c"))
|
.file(src_dir.join("cmplog.c"))
|
||||||
.compile("cmplog");
|
.compile("cmplog");
|
||||||
|
}
|
||||||
|
|
||||||
#[cfg(unix)]
|
#[cfg(unix)]
|
||||||
{
|
{
|
||||||
|
@ -17,7 +17,8 @@ The tinyinst module for `LibAFL`.
|
|||||||
clippy::missing_panics_doc,
|
clippy::missing_panics_doc,
|
||||||
clippy::missing_docs_in_private_items,
|
clippy::missing_docs_in_private_items,
|
||||||
clippy::module_name_repetitions,
|
clippy::module_name_repetitions,
|
||||||
clippy::unreadable_literal
|
clippy::unreadable_literal,
|
||||||
|
clippy::negative_feature_names
|
||||||
)]
|
)]
|
||||||
#![cfg_attr(not(test), warn(
|
#![cfg_attr(not(test), warn(
|
||||||
missing_debug_implementations,
|
missing_debug_implementations,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user