Skip to content

Comments

Add compile option to calculate used parts#9161

Merged
riknoll merged 1 commit intomasterfrom
multi-usedparts
Nov 1, 2022
Merged

Add compile option to calculate used parts#9161
riknoll merged 1 commit intomasterfrom
multi-usedparts

Conversation

@riknoll
Copy link
Member

@riknoll riknoll commented Oct 31, 2022

PR 1 of 3 for automatically detecting if a game is multiplayer at compile time.

This adds a PR that makes it so that the compiler keeps track of the used "parts" when compiling a program. By labeling all multiplayer APIs with parts="multiplayer", then if one of those APIs is called by the user program it should show up in the usedParts array in the CompileResult.

This comment annotation is the same one we use to detect if you use a servo in micro:bit, etc.

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.

3 participants