Skip to content

Commit caff965

Browse files
authored
Fixed Bff file error when AndroidAPILevel not set (#400)
ClangCompilerTarget is never set when the AndroidAPILevel is set to default, thus causing the Bff scripts to break.
1 parent 46a1658 commit caff965

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sharpmake.Platforms/Sharpmake.CommonPlatforms/Android/AndroidAgdePlatform.cs

+4
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,10 @@ public override void SelectCompilerOptions(IGenerationContext context)
322322
AndroidBuildTargets androidBuildtarget = Android.Util.GetAndroidBuildTarget(conf);
323323
cmdLineOptions["ClangCompilerTarget"] = $"-target {Android.Util.GetTargetTripleWithVersionSuffix(androidBuildtarget, androidApiNum)}";
324324
}
325+
else
326+
{
327+
cmdLineOptions["ClangCompilerTarget"] = RemoveLineTag;
328+
}
325329

326330
context.SelectOptionWithFallback
327331
(

0 commit comments

Comments
 (0)