-
Notifications
You must be signed in to change notification settings - Fork 518
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Rgen] Compile all platforms provided in parallel. (#22024)
Allow the command line to be used with more than one rsp. That allows to pass all the rsp for the different platforms we support allowing us to merge the compilation results later to be used by the transformation. --------- Co-authored-by: GitHub Actions Autoformatter <[email protected]>
- Loading branch information
1 parent
9516bf1
commit 0ab0743
Showing
4 changed files
with
156 additions
and
74 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
src/rgen/Microsoft.Macios.Transformer/CompilationResult.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
|
||
using System.Collections.Immutable; | ||
using Microsoft.CodeAnalysis; | ||
using Xamarin.Utils; | ||
|
||
namespace Microsoft.Macios.Transformer; | ||
|
||
/// <summary> | ||
/// Holds the result of a compilation. This is a helper record to make code cleaner in the transformer. | ||
/// </summary> | ||
/// <param name="Platform">The platform the compilation targeted.</param> | ||
/// <param name="Compilation">The compilation result.</param> | ||
/// <param name="Errors">All compilation errors.</param> | ||
record CompilationResult (ApplePlatform Platform, Compilation Compilation, ImmutableArray<Diagnostic> Errors) { | ||
|
||
public (ApplePlatform Platform, Compilation compilation) ToTuple () | ||
=> (Platform, Compilation); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters