Restore conditional oat file copying used by build system.
Change-Id: I40343e59902e894f7343e9d8bbf30f7b5602d786
diff --git a/dex2oat/dex2oat.cc b/dex2oat/dex2oat.cc
index 995f6d4..0e32f0b 100644
--- a/dex2oat/dex2oat.cc
+++ b/dex2oat/dex2oat.cc
@@ -1032,7 +1032,6 @@
return EXIT_SUCCESS;
}
-#if ART_USE_PORTABLE_COMPILER // We currently only generate symbols on Portable
// If we don't want to strip in place, copy from unstripped location to stripped location.
// We need to strip after image creation because FixupElf needs to use .strtab.
if (oat_unstripped != oat_stripped) {
@@ -1054,6 +1053,7 @@
LOG(INFO) << "Oat file copied successfully (stripped): " << oat_stripped;
}
+#if ART_USE_PORTABLE_COMPILER // We currently only generate symbols on Portable
// Strip unneeded sections for target
off_t seek_actual = lseek(oat_file->Fd(), 0, SEEK_SET);
CHECK_EQ(0, seek_actual);