Skip to content

Commit 3c8a7e1

Browse files
committed
Better, I hope
1 parent 0ec8677 commit 3c8a7e1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Xamarin.Android.Build.Tasks/Tasks/ProcessNativeLibraries.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,10 @@ public override bool RunTask ()
6363
// Use IncludeDebugSymbols to determine which one to include.
6464
// We may eventually have files such as `libmono-android-checked+asan.release.so` as well.
6565
var fileName = Path.GetFileNameWithoutExtension (library.ItemSpec);
66-
if (fileName.StartsWith ("libmono-android", StringComparison.Ordinal)) {
66+
if (ExcludedLibraries != null && ExcludedLibraries.Contains (fileName, StringComparer.OrdinalIgnoreCase)) {
67+
Log.LogDebugMessage ($"Excluding '{library.ItemSpec}'");
68+
continue;
69+
} else if (fileName.StartsWith ("libmono-android", StringComparison.Ordinal)) {
6770
if (fileName.EndsWith (".debug", StringComparison.Ordinal)) {
6871
if (!IncludeDebugSymbols)
6972
continue;
@@ -82,9 +85,6 @@ public override bool RunTask ()
8285
if (!wantedComponents.Contains (fileName)) {
8386
continue;
8487
}
85-
} else if (ExcludedLibraries != null && ExcludedLibraries.Contains (fileName, StringComparer.OrdinalIgnoreCase)) {
86-
Log.LogDebugMessage ($"Excluding '{library.ItemSpec}'");
87-
continue;
8888
}
8989

9090
output.Add (library);

0 commit comments

Comments
 (0)