Centipede: Add runner_utils library and update engine_worker/sancov_runtime to use it. Introduce runner_utils target to avoid duplicate symbols when linking engine worker and sancov runtime. PiperOrigin-RevId: 962930004
diff --git a/centipede/BUILD b/centipede/BUILD index 3ad6fae..a2b30e8 100644 --- a/centipede/BUILD +++ b/centipede/BUILD
@@ -1003,8 +1003,6 @@ name = "engine_worker", srcs = [ "engine_worker.cc", - "runner_utils.cc", - "runner_utils.h", ], hdrs = ["engine_worker_abi.h"], deps = [ @@ -1013,6 +1011,7 @@ ":feature", ":runner_request", ":runner_result", + ":runner_utils", ":shared_memory_blob_sequence", "@abseil-cpp//absl/base:nullability", "@com_google_fuzztest//common:defs", @@ -1240,8 +1239,6 @@ "reverse_pc_table.h", "runner_dl_info.cc", "runner_dl_info.h", - "runner_utils.cc", - "runner_utils.h", "sancov_callbacks.cc", "sancov_interceptors.cc", "sancov_object_array.cc", @@ -1263,6 +1260,7 @@ ":foreach_nonzero", ":int_utils", ":runner_cmp_trace", + ":runner_utils", "@abseil-cpp//absl/base:core_headers", "@abseil-cpp//absl/base:nullability", "@abseil-cpp//absl/numeric:bits", @@ -2026,3 +2024,13 @@ ":test_util_sh", ], ) + +cc_library( + name = "runner_utils", + srcs = ["runner_utils.cc"], + hdrs = ["runner_utils.h"], + copts = DISABLE_SANCOV_COPTS, + deps = [ + "@abseil-cpp//absl/base:nullability", + ], +)