Decide which generator to use at compile time