Skip to content

Commit 5d42006

Browse files
committed
bench: fixes for benchmarking harness
This forces the C++ benchmarks that use libc++ to use Clang, which is apparently the only way it works? We also disable a benchmark for D's compile time regexes that seems to either never terminate or take exponential time.
1 parent 4e3a107 commit 5d42006

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

bench/build.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ fn main() {
3131
cc::Build::new()
3232
.cpp(true)
3333
.file("src/ffi/stdcpp.cpp")
34+
.compiler("clang++")
3435
.cpp_link_stdlib("c++")
36+
.cpp_set_stdlib("c++")
3537
.compile("libcstdcpp.a");
3638
}
3739
}

bench/src/sherlock.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,8 @@ sherlock!(holmes_cochar_watson, r"Holmes.{0,25}Watson|Watson.{0,25}Holmes", 7);
178178
#[cfg(not(feature = "re-stdcpp"))]
179179
#[cfg(not(feature = "re-boost"))]
180180
#[cfg(not(feature = "re-tcl"))]
181+
#[cfg(not(feature = "re-dphobos-dmd-ct"))]
182+
#[cfg(not(feature = "re-dphobos-ldc-ct"))]
181183
sherlock!(
182184
holmes_coword_watson,
183185
r"Holmes(?:\s*.+\s*){0,10}Watson|Watson(?:\s*.+\s*){0,10}Holmes",

0 commit comments

Comments
 (0)