Skip to content

Commit

Permalink
Merge pull request #2436 from lf-lang/fix-dot-export
Browse files Browse the repository at this point in the history
Repaired export-dependency-graph property and dropped unsupported export-to-yaml property
  • Loading branch information
erlingrj authored Nov 19, 2024
2 parents 2e6d57f + 048fb80 commit 58bb134
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 28 deletions.
2 changes: 0 additions & 2 deletions core/src/main/java/org/lflang/target/Target.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
import org.lflang.target.property.CoordinationProperty;
import org.lflang.target.property.DockerProperty;
import org.lflang.target.property.ExportDependencyGraphProperty;
import org.lflang.target.property.ExportToYamlProperty;
import org.lflang.target.property.ExternalRuntimePathProperty;
import org.lflang.target.property.FilesProperty;
import org.lflang.target.property.KeepaliveProperty;
Expand Down Expand Up @@ -612,7 +611,6 @@ public void initialize(TargetConfig config) {
CompilerProperty.INSTANCE,
DockerProperty.INSTANCE,
ExportDependencyGraphProperty.INSTANCE,
ExportToYamlProperty.INSTANCE,
ExternalRuntimePathProperty.INSTANCE,
NoRuntimeValidationProperty.INSTANCE,
PrintStatisticsProperty.INSTANCE,
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import org.lflang.inferredType
import org.lflang.lf.Parameter
import org.lflang.lf.Reactor
import org.lflang.target.property.ExportDependencyGraphProperty
import org.lflang.target.property.ExportToYamlProperty
import org.lflang.target.property.FastProperty
import org.lflang.target.property.TimeOutProperty
import org.lflang.target.property.WorkersProperty
Expand Down Expand Up @@ -101,12 +100,11 @@ class CppStandaloneMainGenerator(
|
| // assemble reactor program
| e.assemble();
${" |".. if (targetConfig.get(ExportDependencyGraphProperty.INSTANCE)) "e.export_dependency_graph(\"${main.name}.dot\");" else ""}
${" |".. if (targetConfig.get(ExportToYamlProperty.INSTANCE)) "e.dump_to_yaml(\"${main.name}.yaml\");" else ""}
|
| // start execution
| auto thread = e.startup();
| thread.join();
${" |".. if (targetConfig.get(ExportDependencyGraphProperty.INSTANCE)) "e.export_dependency_graph(\"${main.name}.dot\");" else ""}
| return 0;
|}
""".trimMargin()
Expand Down

0 comments on commit 58bb134

Please sign in to comment.