Make [TARGET_BACKENDS|HAL_DRIVERS]_TO_BUILD functional in CMake. (v2) (#2837)

This reverts commit dfb7633a2d79be6e3bf849148a44b9238afb4bbc.

Clean roll-forward following https://github.com/google/iree/pull/2826 to fix the failing post-submit test.
diff --git a/docs/get_started/cmake_options_and_variables.md b/docs/get_started/cmake_options_and_variables.md
index 3f3dbdd..77dfa1d 100644
--- a/docs/get_started/cmake_options_and_variables.md
+++ b/docs/get_started/cmake_options_and_variables.md
@@ -63,21 +63,16 @@
 
 #### `IREE_HAL_DRIVERS_TO_BUILD`:STRING
 
-*Righ now this only affects whether tests are enabled when compiling for
-Android; it will be fully supported in the future!*
-
 Semicolon-separated list of HAL drivers to build, or `all` for building all HAL
-drivers. Case-insensitive. Defaults to `all`. Example:
-`-DIREE_HAL_DRIVERS_TO_BUILD="Vulkan;VMLA"`.
+drivers. Case-insensitive. If an empty list is provided, will build no HAL
+drivers. Defaults to `all`. Example: `-DIREE_HAL_DRIVERS_TO_BUILD=Vulkan;VMLA`.
 
 #### `IREE_TARGET_BACKENDS_TO_BUILD`:STRING
 
-*Righ now this only affects whether tests are enabled when compiling for
-Android; it will be fully supported in the future!*
-
-Semicolon-separated list of HAL drivers to build, or `all` for building all
-compiler target backends. Case-insensitive. Defaults to `all`. Example:
-`-DIREE_HAL_DRIVERS_TO_BUILD="Vulkan-SPIRV;VMLA"`.
+Semicolon-separated list of target backend to build, or `all` for building all
+compiler target backends. Case-insensitive. If an empty list is provided, will
+build no target backends. Defaults to `all`. Example:
+`-DIREE_TARGET_BACKENDS_TO_BUILD=Vulkan-SPIRV;VMLA`.
 
 #### `IREE_ENABLE_LLD`:BOOL