Skip to content

Commit 03c3451

Browse files
committed
Exclude more types from unityaot profile.
1 parent d8d5e04 commit 03c3451

5 files changed

+11
-3
lines changed

mcs/class/System/System.IO/FileSystemWatcher.cs

+2
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,11 @@ internal string MangledFilter {
198198
internal SearchPattern2 Pattern {
199199
get {
200200
if (pattern == null) {
201+
#if !UNITY_AOT
201202
if (watcher?.GetType () == typeof (KeventWatcher))
202203
pattern = new SearchPattern2 (MangledFilter, true); //assume we want to ignore case (OS X)
203204
else
205+
#endif
204206
pattern = new SearchPattern2 (MangledFilter);
205207
}
206208
return pattern;

mcs/class/System/linux_unityaot_System.dll.sources

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
System.CodeDom/CodeCompileUnit.cs
66
System.CodeDom/CodeTypeDeclaration.cs
77

8-
#include mono_fsw.sources
8+
#include unityaot_fsw.sources
99

1010
../../../external/corefx-bugfix/src/System.IO.FileSystem.Watcher/src/System/IO/FileSystemWatcher.cs
1111
../../../external/corefx-bugfix/src/System.IO.FileSystem.Watcher/src/System/IO/FileSystemWatcher.UnknownUnix.cs

mcs/class/System/macos_unityaot_System.dll.sources

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
../System.Web/System.Web.Util/HttpEncoder.cs
55
System.CodeDom/CodeCompileUnit.cs
66
System.CodeDom/CodeTypeDeclaration.cs
7-
#include mono_fsw.sources
7+
#include unityaot_fsw.sources
88

99
../../../external/corefx-bugfix/src/System.IO.FileSystem.Watcher/src/System/IO/FileSystemWatcher.cs
1010
../../../external/corefx-bugfix/src/System.IO.FileSystem.Watcher/src/System/IO/FileSystemWatcher.UnknownUnix.cs

mcs/class/System/unityaot_fsw.sources

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
System.IO/DefaultWatcher.cs
2+
System.IO/NullFileWatcher.cs
3+
System.IO/FileAction.cs
4+
System.IO/FileSystemWatcher.cs
5+
System.IO/IFileWatcher.cs
6+
System.IO/SearchPattern.cs

mcs/class/System/win32_unityaot_System.dll.sources

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ System.Net.NetworkInformation/Win32UnixFactoryPal.cs
1111
System.CodeDom/CodeCompileUnit.cs
1212
System.CodeDom/CodeTypeDeclaration.cs
1313

14-
#include mono_fsw.sources
14+
#include unityaot_fsw.sources
1515

1616
../../../external/corefx-bugfix/src/System.IO.FileSystem.Watcher/src/System/IO/FileSystemWatcher.cs
1717
../../../external/corefx-bugfix/src/System.IO.FileSystem.Watcher/src/System/IO/FileSystemWatcher.UnknownUnix.cs

0 commit comments

Comments
 (0)