Revert^2 "art: Remove dependencies on platform unavailable modules"

Revert^2 "releasetools: Disable host module on darwin"

0ac3666667de42bd681586d642b52fc9e62e488f

Change-Id: I0c2edeea8a10acc4a6e74a0660ebf7aa5dd67d1b
diff --git a/imgdiag/Android.bp b/imgdiag/Android.bp
index 185e03e..db9435b 100644
--- a/imgdiag/Android.bp
+++ b/imgdiag/Android.bp
@@ -85,5 +85,9 @@
         "art_gtest_defaults",
     ],
     srcs: ["imgdiag_test.cc"],
-    required: ["imgdiagd"],
+    target: {
+        host: {
+            required: ["imgdiagd"],
+        },
+    },
 }