From b542c64fc0e79cce5c480e82380a75ceb882b32b Mon Sep 17 00:00:00 2001 From: Xinhao Yuan Date: Thu, 12 Sep 2024 08:44:40 -0700 Subject: [PATCH] #Centipede Clean up the multi DSO test so that it can run in MacOS. PiperOrigin-RevId: 673864450 --- centipede/testing/BUILD | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/centipede/testing/BUILD b/centipede/testing/BUILD index 991412da..991b3e47 100644 --- a/centipede/testing/BUILD +++ b/centipede/testing/BUILD @@ -204,6 +204,11 @@ cc_library( ], ) +cc_shared_library( + name = "multi_dso_target_shared_lib", + deps = [":multi_dso_target_lib"], +) + # A fuzz target with an instrumented DSO dependency (:multi_dso_target_lib). cc_binary( name = "multi_dso_target", @@ -212,7 +217,9 @@ cc_binary( "-fsanitize-coverage=trace-pc-guard,pc-table,control-flow", "-gline-tables-only", ], - linkstatic = False, + dynamic_deps = [ + ":multi_dso_target_shared_lib", + ], deps = [ ":multi_dso_target_lib", "@com_google_fuzztest//centipede:centipede_runner",