srctree

Robin Linden parent 2d345a9d 944d95cb
protocol: Don't exclude file_handler_test when using clang-cl

We've switched back to std::regex, so no more stack overflows.

inlinesplit
protocol/BUILD added: 2, removed: 25, total 0
@@ -18,38 +18,15 @@ cc_library(
],
)
 
# file_handler_test needs some special treatment right now due to e.g.
# incompatibility w/ clang-cl.
[cc_test(
name = src[:-4],
size = "small",
srcs = [src],
copts = HASTUR_COPTS,
deps = [
":protocol",
"//etest",
],
) for src in glob(
include = ["*_test.cpp"],
exclude = ["file_handler_test.cpp"],
)]
 
# TODO(robinlinden): Get file_handler_test working with clang-cl. Right now it
# crashes due to a stack overflow when matching the regex in uri-parsing. This
# will go away once the spec-compliant url-parser is ready.
cc_test(
name = "file_handler_test",
size = "small",
srcs = ["file_handler_test.cpp"],
copts = HASTUR_COPTS,
target_compatible_with = select({
"//bzl:is_clang-cl": ["@platforms//:incompatible"],
"//conditions:default": [],
}),
deps = [
":protocol",
"//etest",
"//uri",
"@fmt",
],
)
) for src in glob(["*_test.cpp"])]