Fix oatdump to work after selinux OatFile installd change
Change-Id: I993eceef726fca37fd4c79bc0872fb28899ae2f6
diff --git a/oatdump/oatdump.cc b/oatdump/oatdump.cc
index fd0bf2f..85eb89b 100644
--- a/oatdump/oatdump.cc
+++ b/oatdump/oatdump.cc
@@ -1431,6 +1431,10 @@
std::string oat_option;
std::string boot_image_option;
std::string boot_oat_option;
+
+ // We are more like a compiler than a run-time. We don't want to execute code.
+ options.push_back(std::make_pair("compiler", reinterpret_cast<void*>(NULL)));
+
if (boot_image_filename != NULL) {
boot_image_option += "-Ximage:";
boot_image_option += boot_image_filename;