This is needed to generate non-PIC odex files, because optimizing
compiler always generates PIC.
Change-Id: Ic77a0faef6b36f13c61607327640e3378a7ee75e
args.push_back("--compile-pic");
} else {
args.push_back("--include-patch-information");
+
+ // We need to use the quick compiler to generate non-PIC code, because
+ // the optimizing compiler always generates PIC.
+ args.push_back("--compiler-backend=Quick");
}
args.push_back("--runtime-arg");
args.push_back("-Xnorelocate");