Reland "Only do dexlayout when generating comptact dex."

This reverts commit b8ff44c97322b4027493bca570a8463d0e0937f2.

Bug: 207346972

Reason for revert: Fixed logic to still do compact dex / dexlayout
in oat writer.

Change-Id: I8d1b12b3c5f33e6803d25dccb01382ed7923e9d5
3 files changed