Skip to content

Commit

Permalink
Added better handling of target platform
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanL8 committed Mar 12, 2024
1 parent 9f38e61 commit ecea41f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Generator/Passes/GenerateSymbolsPass.cs
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,9 @@ private int RemainingCompilationTasks
foreach (var module in Context.Options.Modules.Where(compiledLibraries.ContainsKey))
{
CompiledLibrary compiledLibrary = compiledLibraries[module];
TargetPlatform target = module.Defines.Contains("ANDROID") ? TargetPlatform.Android : Platform.Host;
TargetPlatform target = Context.ParserOptions.TargetTriple.StartsWith("aarch64")
? TargetPlatform.Android
: Platform.Host;
CollectSymbols(target, compiledLibrary.OutputDir, compiledLibrary.Library);
}
var findSymbolsPass = Context.TranslationUnitPasses.FindPass<FindSymbolsPass>();
Expand Down

0 comments on commit ecea41f

Please sign in to comment.