build: Pass -AlegacyConfigRoot to the compiler.

This is required while we are still using @ConfigRoot, which is
deprecated in favor of @ConfigMapping.

Change-Id: I07a97661ff874466e65f3d7a4d029aca63beea5d
2 files changed