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

feat: configure-time toggles #10724

Closed
wants to merge 3 commits into from
Closed

Conversation

emillon
Copy link
Collaborator

@emillon emillon commented Jul 12, 2024

This is a demo of configure-time toggles, a way to set some configuration values at configure time.

A party_mode toggle is included, that displays a colored message when the build system starts.

By default, it is off. It can be enabled either:

  • at runtime, by setting DUNE_CONFIG__PARTY_MODE=enabled
  • at configure time, by running ./configure --toggles party_mode

@emillon
Copy link
Collaborator Author

emillon commented Jul 12, 2024

(note to self, the implementation isn't great, if we switch to generating an init function in Setup we can avoid the GADT stuff.)

@Leonidas-from-XIV
Copy link
Collaborator

Closing in favor of #10843.

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