Skip to content

Support targeting compilers via platform selectors#1911

Merged
jakemac53 merged 2 commits intocompilerfrom
compiler-boolean-selector
Feb 6, 2023
Merged

Support targeting compilers via platform selectors#1911
jakemac53 merged 2 commits intocompilerfrom
compiler-boolean-selector

Conversation

@jakemac53
Copy link
Copy Markdown
Contributor

This updates the --compiler flag to support a syntax like this --compiler [<platform-selector>:]<compiler>.

This is quite handy because it allows for instance -c web:dart2js or -c chrome:dart2wasm etc. It ultimately does not increase the complexity a lot either.

@jakemac53 jakemac53 requested a review from natebosch February 6, 2023 21:38
if (testOn == PlatformSelector.all) return;

var runtimes = _config.suiteDefaults.runtimes
var unsupportedRuntimes = _config.suiteDefaults.runtimes
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is actually just a revert of what I had tried to do earlier, it should match the original logic now. What I was trying to do no longer makes sense with the fallback to a default compiler on any runtime that has no compiler specified.

@jakemac53 jakemac53 merged commit b7f7600 into compiler Feb 6, 2023
@jakemac53 jakemac53 deleted the compiler-boolean-selector branch February 6, 2023 22:08
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