Add default bazel build flags so things Just Work out of the box. (#17)
diff --git a/.bazelrc b/.bazelrc
new file mode 100644
index 0000000..ef30272
--- /dev/null
+++ b/.bazelrc
@@ -0,0 +1,21 @@
+# Required bazel flags for building IREE.
+
+# The user.bazelrc file is not checked in but available for local mods.
+try-import user.bazelrc
+
+# Disable warnings we don't care about.
+build --copt=-Wno-unused-local-typedef
+
+# C++14 standard version is required.
+build --cxxopt=-std=c++14 --host_cxxopt=-std=c++14
+
+# Default to an optimized build.
+# Override via: "-c dbg" or --compilation_mode=dbg
+build --compilation_mode=opt
+
+# Disable visibility checks (works around some private deps in TensorFlow that
+# are being unbundled soon anyway).
+build --nocheck_visibility
+
+# Enable some default cpu flags for x86 optimization.
+build:x86opt --copt=-mavx2
diff --git a/.gitignore b/.gitignore
index 83edc58..5ca8068 100644
--- a/.gitignore
+++ b/.gitignore
@@ -18,3 +18,6 @@
# Bazel artifacts
bazel-*/
+
+# Local-only config options
+user.bazelrc