Skip to content

Commit

Permalink
Exclude more types from unityaot profile.
Browse files Browse the repository at this point in the history
  • Loading branch information
joncham committed Aug 24, 2021
1 parent c77282d commit ed4e4ef
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 3 deletions.
2 changes: 2 additions & 0 deletions mcs/class/System/System.IO/FileSystemWatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,11 @@ internal string MangledFilter {
internal SearchPattern2 Pattern {
get {
if (pattern == null) {
#if !UNITY_AOT
if (watcher?.GetType () == typeof (KeventWatcher))
pattern = new SearchPattern2 (MangledFilter, true); //assume we want to ignore case (OS X)
else
#endif
pattern = new SearchPattern2 (MangledFilter);
}
return pattern;
Expand Down
2 changes: 1 addition & 1 deletion mcs/class/System/linux_unityaot_System.dll.sources
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
System.CodeDom/CodeCompileUnit.cs
System.CodeDom/CodeTypeDeclaration.cs

#include mono_fsw.sources
#include unityaot_fsw.sources

../../../external/corefx-bugfix/src/System.IO.FileSystem.Watcher/src/System/IO/FileSystemWatcher.cs
../../../external/corefx-bugfix/src/System.IO.FileSystem.Watcher/src/System/IO/FileSystemWatcher.UnknownUnix.cs
Expand Down
2 changes: 1 addition & 1 deletion mcs/class/System/macos_unityaot_System.dll.sources
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
../System.Web/System.Web.Util/HttpEncoder.cs
System.CodeDom/CodeCompileUnit.cs
System.CodeDom/CodeTypeDeclaration.cs
#include mono_fsw.sources
#include unityaot_fsw.sources

../../../external/corefx-bugfix/src/System.IO.FileSystem.Watcher/src/System/IO/FileSystemWatcher.cs
../../../external/corefx-bugfix/src/System.IO.FileSystem.Watcher/src/System/IO/FileSystemWatcher.UnknownUnix.cs
Expand Down
6 changes: 6 additions & 0 deletions mcs/class/System/unityaot_fsw.sources
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
System.IO/DefaultWatcher.cs
System.IO/NullFileWatcher.cs
System.IO/FileAction.cs
System.IO/FileSystemWatcher.cs
System.IO/IFileWatcher.cs
System.IO/SearchPattern.cs
2 changes: 1 addition & 1 deletion mcs/class/System/win32_unityaot_System.dll.sources
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ System.Net.NetworkInformation/Win32UnixFactoryPal.cs
System.CodeDom/CodeCompileUnit.cs
System.CodeDom/CodeTypeDeclaration.cs

#include mono_fsw.sources
#include unityaot_fsw.sources

../../../external/corefx-bugfix/src/System.IO.FileSystem.Watcher/src/System/IO/FileSystemWatcher.cs
../../../external/corefx-bugfix/src/System.IO.FileSystem.Watcher/src/System/IO/FileSystemWatcher.UnknownUnix.cs
Expand Down

0 comments on commit ed4e4ef

Please sign in to comment.