Skip to content

Commit

Permalink
Merge pull request #1698 from lf-lang/auth-fail-test
Browse files Browse the repository at this point in the history
Fix SimpleFederatedAuthenticated.lf broken CI test
  • Loading branch information
lhstrh authored Apr 27, 2023
2 parents 2b75fe7 + 68b0090 commit ea974a8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion org.lflang/src/lib/c/reactor-c
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,9 @@ public static void handleCompileDefinitions(
federate.targetConfig.setByUser.add(TargetProperty.COMPILE_DEFINITIONS);
federate.targetConfig.compileDefinitions.put("FEDERATED", "");
federate.targetConfig.compileDefinitions.put("FEDERATED_"+federate.targetConfig.coordination.toString().toUpperCase(), "");
if (federate.targetConfig.auth) {
federate.targetConfig.compileDefinitions.put("FEDERATED_AUTHENTICATED", "");
}
federate.targetConfig.compileDefinitions.put("NUMBER_OF_FEDERATES", String.valueOf(numOfFederates));
federate.targetConfig.compileDefinitions.put("EXECUTABLE_PREAMBLE", "");
federate.targetConfig.compileDefinitions.put("WORKERS_NEEDED_FOR_FEDERATE", String.valueOf(minThreadsToHandleInputPorts(federate)));
Expand Down

0 comments on commit ea974a8

Please # to comment.