Skip to content

Commit e16f484

Browse files
committed
Remove artificial limitations for cross-generation in CLI.
1 parent 21c89be commit e16f484

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

src/CLI/Generator.cs

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -103,37 +103,8 @@ public bool ValidateOptions(List<string> messages)
103103
if (string.IsNullOrEmpty(options.OutputNamespace))
104104
options.OutputNamespace = moduleName;
105105

106-
if (Platform.IsWindows && options.Platform != TargetPlatform.Windows)
107-
{
108-
messages.Add("Cannot create bindings for a platform other that Windows from a Windows host.");
109-
return false;
110-
}
111-
else if (Platform.IsMacOS && options.Platform != TargetPlatform.MacOS)
112-
{
113-
messages.Add("Cannot create bindings for a platform other that macOS from a macOS host.");
114-
return false;
115-
}
116-
else if (Platform.IsLinux && options.Platform != TargetPlatform.Linux)
117-
{
118-
messages.Add("Cannot create bindings for a platform other that Linux from a Linux host.");
119-
return false;
120-
}
121-
122-
if (options.Platform != TargetPlatform.Windows && options.Kind != GeneratorKind.CSharp)
123-
{
124-
messages.Add("Cannot create bindings for languages other than C# from a non-Windows host.");
125-
return false;
126-
}
127-
128-
if (options.Platform == TargetPlatform.Linux && options.Architecture != TargetArchitecture.x64)
129-
{
130-
messages.Add("Cannot create bindings for architectures other than x64 for Linux targets.");
131-
return false;
132-
}
133-
134106
SetupTargetTriple();
135107

136-
137108
return true;
138109
}
139110

0 commit comments

Comments
 (0)