Allow single image compilation on host when --force-allow-oj-inlines is set to true.

Bug: 249088727
Test: Presubmit
Change-Id: Ied75fdc10dea0d9a05421670fef4d3407c170a4c
diff --git a/dex2oat/dex2oat.cc b/dex2oat/dex2oat.cc
index ada2303..51a3689 100644
--- a/dex2oat/dex2oat.cc
+++ b/dex2oat/dex2oat.cc
@@ -788,9 +788,12 @@
       compiler_options_->multi_image_ = IsBootImage() || IsBootImageExtension();
     }
     // On target we support generating a single image for the primary boot image.
-    if (!kIsTargetBuild) {
+    if (!kIsTargetBuild && !force_allow_oj_inlines_) {
       if (IsBootImage() && !compiler_options_->multi_image_) {
-        Usage("--single-image specified for primary boot image on host");
+        Usage(
+            "--single-image specified for primary boot image on host. Please "
+            "use the flag --force-allow-oj-inlines and do not distribute "
+            "binaries.");
       }
     }
     if (IsAppImage() && compiler_options_->multi_image_) {