Skip to content

Commit

Permalink
Fixed Bff file error when AndroidAPILevel not set (#400)
Browse files Browse the repository at this point in the history
ClangCompilerTarget is never set when the AndroidAPILevel is set to default, thus causing the Bff scripts to break.
  • Loading branch information
Sharlock93 authored Feb 7, 2025
1 parent 46a1658 commit caff965
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,10 @@ public override void SelectCompilerOptions(IGenerationContext context)
AndroidBuildTargets androidBuildtarget = Android.Util.GetAndroidBuildTarget(conf);
cmdLineOptions["ClangCompilerTarget"] = $"-target {Android.Util.GetTargetTripleWithVersionSuffix(androidBuildtarget, androidApiNum)}";
}
else
{
cmdLineOptions["ClangCompilerTarget"] = RemoveLineTag;
}

context.SelectOptionWithFallback
(
Expand Down

0 comments on commit caff965

Please sign in to comment.