forked from iree-org/iree
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add default bazel build flags so things Just Work out of the box. (ir…
- Loading branch information
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,3 +18,6 @@ build/ | |
|
||
# Bazel artifacts | ||
bazel-*/ | ||
|
||
# Local-only config options | ||
user.bazelrc |