Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CLI] Support compiling for multiple targets together #660

Merged
merged 4 commits into from
Oct 3, 2023
Merged

Conversation

aman-goel
Copy link
Contributor

Updates include:

  • Support compiling for multiple backend targets together. Simply add all your desired backend targets in the <Target> field in *.pproj file. E.g., <Target>CSharp, PObserve, Stately, Symbolic</Target>
  • Support configuring PObserve package name through *.pproj using field <pobserve-package>

Adds support for multiple targets in .pproj file using <Target> field

Adds <pobserve-package> field in .pproj
@@ -14,18 +14,18 @@ namespace UnitTests.Runners
/// </summary>
public class CompileOnlyRunner : ICompilerTestRunner
{
private readonly CompilerOutput compilerOutput;
private readonly IDictionary<string, CompilerOutput> compilerOutputs;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this a dictornary?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! Don't need a dictionary in this final version. Update to list via dd21650

@@ -183,43 +208,48 @@ private string GetOutputDirectoryName(FileInfo fullPathName)
return Directory.GetCurrentDirectory();
}

private void GetTargetLanguage(FileInfo fullPathName, ref CompilerOutput outputLanguage, ref bool generateSourceMaps)
private IDictionary<string, CompilerOutput> GetTargetLanguages(FileInfo fullPathName)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is the return value a dictionary and not a list?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update to list via dd21650

@aman-goel aman-goel merged commit 05c9862 into master Oct 3, 2023
14 checks passed
@aman-goel aman-goel deleted the dev/aman branch October 3, 2023 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants