diff options
author | Gunhan Gulsoy <gunan@google.com> | 2017-01-16 01:21:51 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2017-01-16 01:47:31 -0800 |
commit | acdbd68986448f4e3ed81a98244c8be1c57b52da (patch) | |
tree | ff53648961c33de33644b599dd010240dbd95445 | |
parent | 6987e97e1161cdfcfa10977fecd38fb53a7d4863 (diff) |
Create --config opt for compiling fully optimized binaries.
Change: 144609556
-rwxr-xr-x | configure | 2 | ||||
-rw-r--r-- | tools/bazel.rc.template | 4 |
2 files changed, 5 insertions, 1 deletions
@@ -165,7 +165,7 @@ fi # Append CC optimization flags to bazel.rc echo >> tools/bazel.rc for opt in $CC_OPT_FLAGS; do - echo "build --cxxopt=$opt --copt=$opt" >> tools/bazel.rc + echo "build:opt --cxxopt=$opt --copt=$opt" >> tools/bazel.rc done # Run the gen_git_source to create links where bazel can track dependencies for diff --git a/tools/bazel.rc.template b/tools/bazel.rc.template index a1fb55632c..3f08795670 100644 --- a/tools/bazel.rc.template +++ b/tools/bazel.rc.template @@ -27,3 +27,7 @@ run --spawn_strategy=standalone build --genrule_strategy=standalone test --genrule_strategy=standalone run --genrule_strategy=standalone + +build -c opt +test -c opt +run -c opt |