Skip to content

Commit

Permalink
fix cc invocations to use provided methods
Browse files Browse the repository at this point in the history
This may help non-gnu style CLIs work.
  • Loading branch information
nagisa committed Nov 25, 2024
1 parent 6b70f59 commit 4e1945f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ version = "0.4.8"
arbitrary = "1"

[build-dependencies]
cc = { version = "1.0", features = ["parallel"] }
cc = { version = "1.0.83", features = ["parallel"] }

[features]
default = ["link_libfuzzer"]
Expand Down
6 changes: 3 additions & 3 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ fn build_and_link_libfuzzer() {
println!("cargo:rerun-if-changed={}", source.display());
build.file(source.to_str().unwrap());
}
build.flag("-std=c++17");
build.flag("-fno-omit-frame-pointer");
build.flag("-w");
build.cpp(true);
build.std("c++17");
build.force_frame_pointer(true);
build.warnings(false);
build.compile("libfuzzer.a");
}
}
Expand Down

0 comments on commit 4e1945f

Please sign in to comment.