Skip to content

feat: configure-time toggles - #10724

Closed
emillon wants to merge 3 commits into
ocaml:mainfrom
emillon:compile-time-toggles
Closed

feat: configure-time toggles#10724
emillon wants to merge 3 commits into
ocaml:mainfrom
emillon:compile-time-toggles

Conversation

@emillon

@emillon emillon commented Jul 12, 2024

Copy link
Copy Markdown
Collaborator

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

emillon commented Jul 12, 2024

Copy link
Copy Markdown
Collaborator Author

(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
Copy Markdown
Member

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