Fix debug flag ordering

art_debug_defaults needs to come first in the defaults list so that its
prepended flags come after the art_defaults flags.
-Wno-frame-larger-than= also needs to be inside a target block to match the
way the -Wframe-larger-than= flags are inserted by art.go so that they
come after.

Change-Id: I17c191ec9dcc393db1e0805cd058c768e4d09400
diff --git a/runtime/Android.bp b/runtime/Android.bp
index c92df4e..ac65d89 100644
--- a/runtime/Android.bp
+++ b/runtime/Android.bp
@@ -449,8 +449,8 @@
 art_cc_library {
     name: "libartd",
     defaults: [
-        "libart_defaults",
-        "art_debug_defaults",
+       "art_debug_defaults",
+       "libart_defaults",
     ],
 }
 
diff --git a/runtime/openjdkjvm/Android.bp b/runtime/openjdkjvm/Android.bp
index 3e8dc8c..5ed1615 100644
--- a/runtime/openjdkjvm/Android.bp
+++ b/runtime/openjdkjvm/Android.bp
@@ -31,8 +31,8 @@
 art_cc_library {
     name: "libopenjdkjvmd",
     defaults: [
-        "libopenjdkjvm_defaults",
         "art_debug_defaults",
+        "libopenjdkjvm_defaults",
     ],
     shared_libs: ["libartd"],
 }
diff --git a/runtime/openjdkjvmti/Android.bp b/runtime/openjdkjvmti/Android.bp
index 4430248..977ef44 100644
--- a/runtime/openjdkjvmti/Android.bp
+++ b/runtime/openjdkjvmti/Android.bp
@@ -31,8 +31,8 @@
 art_cc_library {
     name: "libopenjdkjvmtid",
     defaults: [
-        "libopenjdkjvmti_defaults",
         "art_debug_defaults",
+        "libopenjdkjvmti_defaults",
     ],
     shared_libs: ["libartd"],
 }
diff --git a/runtime/simulator/Android.bp b/runtime/simulator/Android.bp
index 05f44e3..2a49e7e 100644
--- a/runtime/simulator/Android.bp
+++ b/runtime/simulator/Android.bp
@@ -41,8 +41,8 @@
 cc_library_host_shared {
     name: "libart-simulatord",
     defaults: [
-        "libart_simulator_defaults",
         "art_debug_defaults",
+        "libart_simulator_defaults",
     ],
     shared_libs: [
         "libartd",