Add new Windows Bazel flags compatible with TensorFlow. (#3393)
See https://github.com/tensorflow/tensorflow/commit/5aa11f9c5e7a6071f2d0a774c9e43d46be08ec78
diff --git a/build_tools/bazel/iree.bazelrc b/build_tools/bazel/iree.bazelrc
index ee0a1cb..46922a4 100644
--- a/build_tools/bazel/iree.bazelrc
+++ b/build_tools/bazel/iree.bazelrc
@@ -298,4 +298,10 @@
# Another TensorFlow flag from their config script.
build:windows --define with_default_optimizations=true
+# TensorFlow builds depend on these flags so we will as well
+# MSVC (Windows): Standards-conformant preprocessor mode
+# See https://docs.microsoft.com/en-us/cpp/preprocessor/preprocessor-experimental-overview
+build:windows --copt=/experimental:preprocessor
+build:windows --host_copt=/experimental:preprocessor
+
###############################################################################