OSDN Git Service

Use quick compiler to generate odex for oat file assistant tests.
authorRichard Uhler <ruhler@google.com>
Tue, 10 Mar 2015 17:02:23 +0000 (10:02 -0700)
committerRichard Uhler <ruhler@google.com>
Tue, 10 Mar 2015 17:02:23 +0000 (10:02 -0700)
This is needed to generate non-PIC odex files, because optimizing
compiler always generates PIC.

Change-Id: Ic77a0faef6b36f13c61607327640e3378a7ee75e

runtime/oat_file_assistant_test.cc

index 4232b88..443e3a8 100644 (file)
@@ -175,6 +175,10 @@ class OatFileAssistantTest : public CommonRuntimeTest {
       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");