Adding IREE_LINK_COMPILER_SHARED_LIBRARY cmake flag. (#11335)

This is enabled by default and tools link in the fancy shared library.
When disabled the tools link in the static library version. This can be
useful when wanting to build standalone binaries. It's also useful to
work around MSVC's link.exe issues with ilk files >4GB that we run into
with the shared library enabled.
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6181fba..66dc7ad 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -268,6 +268,7 @@
 option(IREE_ENABLE_UBSAN "Enable undefined behavior sanitizer" OFF)
 option(IREE_ENABLE_SPLIT_DWARF "Enable gsplit-dwarf for debug information if the platform supports it" OFF)
 option(IREE_ENABLE_THIN_ARCHIVES "Enables thin ar archives (elf systems only). Disable for released static archives" OFF)
+option(IREE_LINK_COMPILER_SHARED_LIBRARY "Links IREE tools using the compiler compiled into a shared library" ON)
 
 # STREQUAL feels wrong here - we don't care about the exact true-value used,
 # ON or TRUE or something else. But we haven't been able to think of a less bad