llvm-config --libs only for apple (#522)
* Fuck apple * fix fuzzbench_text
This commit is contained in:
parent
2bb60fb756
commit
1fca710813
@ -328,7 +328,7 @@ fn fuzz_binary(
|
|||||||
// This one is composed by two Feedbacks in OR
|
// This one is composed by two Feedbacks in OR
|
||||||
let feedback = feedback_or!(
|
let feedback = feedback_or!(
|
||||||
// New maximization map feedback linked to the edges observer and the feedback state
|
// New maximization map feedback linked to the edges observer and the feedback state
|
||||||
MaxMapFeedback::new_tracking(&feedback_state, &edges_observer, true, false),
|
MaxMapFeedback::new_tracking(&feedback_state, &edges_observer, true, true),
|
||||||
// Time feedback, this one does not need a feedback state
|
// Time feedback, this one does not need a feedback state
|
||||||
TimeFeedback::new_with_observer(&time_observer)
|
TimeFeedback::new_with_observer(&time_observer)
|
||||||
);
|
);
|
||||||
|
@ -134,9 +134,15 @@ fn main() {
|
|||||||
.expect("Failed to execute llvm-config");
|
.expect("Failed to execute llvm-config");
|
||||||
let cxxflags = str::from_utf8(&output.stdout).expect("Invalid llvm-config output");
|
let cxxflags = str::from_utf8(&output.stdout).expect("Invalid llvm-config output");
|
||||||
|
|
||||||
let output = Command::new(&llvm_config)
|
let mut cmd = Command::new(&llvm_config);
|
||||||
|
|
||||||
|
#[cfg(target_vendor = "apple")]
|
||||||
|
{
|
||||||
|
cmd.args(&["--libs"]);
|
||||||
|
}
|
||||||
|
|
||||||
|
let output = cmd
|
||||||
.args(&["--ldflags"])
|
.args(&["--ldflags"])
|
||||||
.args(&["--libs"])
|
|
||||||
.output()
|
.output()
|
||||||
.expect("Failed to execute llvm-config");
|
.expect("Failed to execute llvm-config");
|
||||||
let ldflags = str::from_utf8(&output.stdout).expect("Invalid llvm-config output");
|
let ldflags = str::from_utf8(&output.stdout).expect("Invalid llvm-config output");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user