Skip to content

Commit

Permalink
Reduce scope of check
Browse files Browse the repository at this point in the history
  • Loading branch information
lhstrh committed Sep 29, 2024
1 parent 1406621 commit 0e07fe3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,8 @@ private boolean federatedExecutionIsSupported(Resource resource, LFGeneratorCont
targetOK = false;
}
var platform = context.getTargetConfig().get(PlatformProperty.INSTANCE).platform();
if (!supportsFederated(platform)) {
if ((target.equals(Target.C) || target.equals(Target.CPP)) && !supportsFederated(platform)) {
// Currently, only the C runtime has a platform abstraction.
messageReporter
.at(targetDecl)
.error("Federations are not supported by the " + platform.getcMakeName() + " platform.");
Expand Down

0 comments on commit 0e07fe3

Please sign in to comment.