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

Support targeting compilers via platform selectors #1911

Merged
merged 2 commits into from
Feb 6, 2023

Conversation

jakemac53
Copy link
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
@@ -167,21 +166,12 @@ class Runner {
var testOn = _config.suiteDefaults.metadata.testOn;
if (testOn == PlatformSelector.all) return;

var runtimes = _config.suiteDefaults.runtimes
var unsupportedRuntimes = _config.suiteDefaults.runtimes
Copy link
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