magic
magic copied to clipboard
Unify options system
There are currently three ways to configure compilation in MAGIC
- The
magic.flagsdynamic vars - Spells
- Option maps in
magic.api
The divergence is not a result of design but of history. There's no reason not to unify these three under a single system.
magic.flags is the simplest and most idiomatic of them all so should be expanded to trigger spells and populate magic.api option maps as well. The internal implementation of the spells and option maps can remain as implementation details.