No deprecation warnings and no release asserts (#4965)
Fix release builds to build without asserts and turn off annoying
deprecation warnings.
The former is fallout from https://github.com/google/iree/pull/4836 and
the latter is something we've noticed being really annoying recently.
The setting of deprecation to no-error (explicitly inviting warning
spam) is something we seem to have inherited from Google's internal
build. My best guess is that people mostly only see these in the code
they're changing because everything is cached or something. If we want
to surface these warnings, we should set up clang-tidy. Spamming the
logs for anyone building anything in the project is not the way.
diff --git a/build_tools/cmake/iree_copts.cmake b/build_tools/cmake/iree_copts.cmake
index b673006..f421139 100644
--- a/build_tools/cmake/iree_copts.cmake
+++ b/build_tools/cmake/iree_copts.cmake
@@ -106,7 +106,7 @@
# signal/noise ratio.
"-Wno-ambiguous-member-template"
"-Wno-char-subscripts"
- "-Wno-error=deprecated-declarations"
+ "-Wno-deprecated-declarations"
"-Wno-extern-c-compat" # Matches upstream. Cannot impact due to extern C inclusion method.
"-Wno-gnu-alignof-expression"
"-Wno-gnu-variable-sized-type-not-at-end"