Skip to content

Commit a247317

Browse files
authored
Merge pull request #127 from rust-fuzz/nagisa/cc-fixes
fix cc invocations to use provided methods
2 parents 6b70f59 + 4e1945f commit a247317

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

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)