Skip to content

Commit 4e1945f

Browse files
committed
fix cc invocations to use provided methods
This may help non-gnu style CLIs work.
1 parent 6b70f59 commit 4e1945f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ version = "0.4.8"
1212
arbitrary = "1"
1313

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

1717
[features]
1818
default = ["link_libfuzzer"]

build.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ fn build_and_link_libfuzzer() {
3131
println!("cargo:rerun-if-changed={}", source.display());
3232
build.file(source.to_str().unwrap());
3333
}
34-
build.flag("-std=c++17");
35-
build.flag("-fno-omit-frame-pointer");
36-
build.flag("-w");
3734
build.cpp(true);
35+
build.std("c++17");
36+
build.force_frame_pointer(true);
37+
build.warnings(false);
3838
build.compile("libfuzzer.a");
3939
}
4040
}

0 commit comments

Comments
 (0)