From 4e1945f3e4e95dddf8a372fb69cd3735e8adc946 Mon Sep 17 00:00:00 2001 From: Simonas Kazlauskas Date: Mon, 25 Nov 2024 16:19:40 +0200 Subject: [PATCH] fix cc invocations to use provided methods This may help non-gnu style CLIs work. --- Cargo.toml | 2 +- build.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index aa33eb9..beaf4c5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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"] diff --git a/build.rs b/build.rs index e549e3f..207f255 100644 --- a/build.rs +++ b/build.rs @@ -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"); } }