The security engineer in me had a facial twitch, but for the right usecases this would be indeed be interesting!
If carefully implemented the compiler and linker could omit code that the configuration didn’t require. Wouldn’t less code mean better security and performance?