Add a phenotype flag to disable compact dex in dex2oat.
The purpose is in particular to control usage of libart-dexlayout.so to
conduct an experiment on its impact.
Add the flag to odrefresh recompile logic since odex files are
invalidated when it changes.
Test: Gtests and run tests on host and in chroot
with the flag defaulting to true and dexlayout dependencies
temporarily commented out from dex2oat/linker/oat_writer.cc.
Intentional failures in compact dex related gtests in
art_dex2oat_tests:
Dex2oatTest.LayoutSections
Dex2oatTest.GenerateCompactDex
Dex2oatTest.CompactDexInZip
Bug: 256664509
Change-Id: If518f7d128e99eddbd8f643c2d8b8b4a39efaef4
3 files changed