Removing module dialect specialized opt/translate tools.

These are not useful vs. the main iree-opt/iree-translate as everything
is still compiled in all cases but having them separate prevents using
the dialects in iree-opt/iree-translate/iree-run-mlir and just increases
link time.

Fixes #1262.
Also fixes test execution of these modules on Windows.

Closes https://github.com/google/iree/pull/1263

COPYBARA_INTEGRATE_REVIEW=https://github.com/google/iree/pull/1263 from google:benvanik-mondo-tools f107800452b87bf247a317beef7df1097608545b
PiperOrigin-RevId: 303167394
diff --git a/build_tools/bazel/iree_check_test.bzl b/build_tools/bazel/iree_check_test.bzl
index a244100..c145527 100644
--- a/build_tools/bazel/iree_check_test.bzl
+++ b/build_tools/bazel/iree_check_test.bzl
@@ -45,7 +45,6 @@
             "-iree-mlir-to-vm-bytecode-module",
             "--iree-hal-target-backends=%s" % target_backend,
         ],
-        translate_tool = "//iree/compiler/Dialect/Modules/Check:check-translate",
         visibility = ["//visibility:private"],
     )
 
diff --git a/build_tools/bazel_to_cmake/bazel_to_cmake.py b/build_tools/bazel_to_cmake/bazel_to_cmake.py
index 869d311..33deda8 100755
--- a/build_tools/bazel_to_cmake/bazel_to_cmake.py
+++ b/build_tools/bazel_to_cmake/bazel_to_cmake.py
@@ -149,7 +149,7 @@
     return "  FLAGS\n%s\n" % (flags_list)
 
   def _convert_translate_tool_block(self, translate_tool):
-    if translate_tool:
+    if translate_tool and translate_tool != "//iree/tools:iree-translate":
       # Bazel `//iree/base`     -> CMake `iree::base`
       # Bazel `//iree/base:api` -> CMake `iree::base::api`
       translate_tool = translate_tool.replace("//iree", "iree")  # iree/base:api