Browse Source

Use arm64 headers if available

pull/1904/head
duckdoom5 4 months ago
parent
commit
04452b6b8c
  1. 5
      src/CppParser/ParserGen/ParserGen.cs

5
src/CppParser/ParserGen/ParserGen.cs

@ -131,8 +131,11 @@ namespace CppSharp @@ -131,8 +131,11 @@ namespace CppSharp
options.MicrosoftMode = false;
options.NoBuiltinIncludes = true;
bool isArm = Triple.Contains("arm");
var headersPath = Platform.IsLinux ? string.Empty :
Path.Combine(GetSourceDirectory("build"), "headers", "x86_64-linux-gnu");
Path.Combine(GetSourceDirectory("build"), "headers",
isArm ? "arm64-linux-gnu" : "x86_64-linux-gnu");
options.SetupLinux(headersPath);
options.AddDefines("_GLIBCXX_USE_CXX11_ABI=" + (IsGnuCpp11Abi ? "1" : "0"));
}

Loading…
Cancel
Save