We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f370bdd commit ff94a60Copy full SHA for ff94a60
1 file changed
ddprof-lib/build.gradle.kts
@@ -145,6 +145,9 @@ afterEvaluate {
145
val supportLibName = if (PlatformUtils.currentPlatform == Platform.MACOS) "libJavaSupport.dylib" else "libJavaSupport.so"
146
nativeBuild.buildConfigurations.names.forEach { configName ->
147
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
151
val libDir = nativeBuild.librarySourceDir(configName).get().asFile.absolutePath
152
supportOnlyTests.forEach { testName ->
153
tasks.findByName("linkGtest${cap}_$testName")?.let {
0 commit comments