Created --runtime-arg switch for dex2oat to pass arguments to runtime.
This replaces the -Xms, -Xmx, and -verbose options.
Change-Id: Idc023b6d369bd8b5df932b9f2eb6dbc79d591ab1
diff --git a/src/oatopt.cc b/src/oatopt.cc
index 133af59..c792b4d 100644
--- a/src/oatopt.cc
+++ b/src/oatopt.cc
@@ -51,8 +51,8 @@
execl("/system/bin/dex2oatd",
"/system/bin/dex2oatd",
- "-Xms64m",
- "-Xmx64m",
+ "--runtime-arg", "-Xms64m",
+ "--runtime-arg", "-Xmx64m",
"--boot-image=/data/art-cache/boot.art",
dex_file_option.c_str(),
oat_file_option.c_str(),