Skip to content

Commit ff94a60

Browse files
jbachorikclaude
andcommitted
fix: skip support-only gtest wiring for sanitizer configs
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent f370bdd commit ff94a60

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

ddprof-lib/build.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,9 @@ afterEvaluate {
145145
val supportLibName = if (PlatformUtils.currentPlatform == Platform.MACOS) "libJavaSupport.dylib" else "libJavaSupport.so"
146146
nativeBuild.buildConfigurations.names.forEach { configName ->
147147
val cap = configName.replaceFirstChar { it.uppercase() }
148+
// Only wire support-only linking for configs that actually build a separate libJavaSupport.
149+
// Sanitizer configs (asan, tsan) compile all sources into the gtest binary directly.
150+
if (tasks.findByName("linkSupport$cap") == null) return@forEach
148151
val libDir = nativeBuild.librarySourceDir(configName).get().asFile.absolutePath
149152
supportOnlyTests.forEach { testName ->
150153
tasks.findByName("linkGtest${cap}_$testName")?.let {

0 commit comments

Comments
 (0)