Skip to content

Commit

Permalink
Instruct generator to build ARM64 bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
konistehrad committed Feb 2, 2024
1 parent 308d6af commit 343d009
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions src/CppParser/ParserGen/ParserGen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -170,13 +170,17 @@ public static void Main(string[] args)
var osxHeadersPath = Path.Combine(GetSourceDirectory("build"), @"headers\osx");
if (Directory.Exists(osxHeadersPath) || Platform.IsMacOS)
{
Console.WriteLine("Generating the C# parser bindings for OSX...");
Console.WriteLine("Generating the C# parser bindings for OSX x86...");
ConsoleDriver.Run(new ParserGen(GeneratorKind.CSharp, "i686-apple-darwin12.4.0"));
Console.WriteLine();

Console.WriteLine("Generating the C# parser bindings for OSX...");
Console.WriteLine("Generating the C# parser bindings for OSX x64...");
ConsoleDriver.Run(new ParserGen(GeneratorKind.CSharp, "x86_64-apple-darwin12.4.0"));
Console.WriteLine();

Console.WriteLine("Generating the C# parser bindings for OSX ARM64...");
ConsoleDriver.Run(new ParserGen(GeneratorKind.CSharp, "arm64-apple-darwin12.4.0"));
Console.WriteLine();
}

var linuxHeadersPath = Path.Combine(GetSourceDirectory("build"), @"headers\x86_64-linux-gnu");
Expand All @@ -186,10 +190,19 @@ public static void Main(string[] args)
ConsoleDriver.Run(new ParserGen(GeneratorKind.CSharp, "x86_64-linux-gnu"));
Console.WriteLine();

Console.WriteLine("Generating the C# parser bindings for Linux ARM64...");
ConsoleDriver.Run(new ParserGen(GeneratorKind.CSharp, "arm64-linux-gnu"));
Console.WriteLine();

Console.WriteLine("Generating the C# parser bindings for Linux (GCC C++11 ABI)...");
ConsoleDriver.Run(new ParserGen(GeneratorKind.CSharp, "x86_64-linux-gnu",
isGnuCpp11Abi: true));
Console.WriteLine();

Console.WriteLine("Generating the C# parser bindings for Linux ARM64 (GCC C++11 ABI)...");
ConsoleDriver.Run(new ParserGen(GeneratorKind.CSharp, "arm64-linux-gnu",
isGnuCpp11Abi: true));
Console.WriteLine();
}
}
}
Expand Down

0 comments on commit 343d009

Please sign in to comment.