Fix dex2oatd module definition.

- On target, dex2oatd is compiled as a "prefer32" module, producing a
  single 32-bit (or potentially 64-bit) binary ("dex2oatd");
- On host, dex2oatd is compiled as a multilib module, producing both
  32- and 64-bit binaries ("dex2oatd32" and "dex2oatd64") as well as a
  symlink ("dex2oatd") pointing to one of these binaries (the "primary
  target").

Test: m
Test: art/build/apex/runtests.sh
Test: Run "adb shell cmd package bg-dexopt-job" on a userdebug build
      and verify the absence of SELinux denials for `installd`.
Test: ALLOW_MISSING_DEPENDENCIES=true DIST_DIR=$(pwd)/out/dist art/tools/dist_linux_bionic.sh -j50 com.android.runtime.host
Bug: 133864678
Bug: 123079311
Change-Id: Ic1b297888ae9889f9344362b25bc6ae0a52138db
2 files changed