Skip to content

Commit

Permalink
Create --config opt for compiling fully optimized binaries.
Browse files Browse the repository at this point in the history
Change: 144609556
  • Loading branch information
gunan authored and tensorflower-gardener committed Jan 16, 2017
1 parent 6987e97 commit acdbd68
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions tools/bazel.rc.template
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit acdbd68

Please sign in to comment.