Create --config opt for compiling fully optimized binaries.

Change: 144609556
This commit is contained in:
Gunhan Gulsoy 2017-01-16 01:21:51 -08:00 committed by TensorFlower Gardener
parent 6987e97e11
commit acdbd68986
2 changed files with 5 additions and 1 deletions

2
configure vendored
View File

@ -165,7 +165,7 @@ fi
# Append CC optimization flags to bazel.rc # Append CC optimization flags to bazel.rc
echo >> tools/bazel.rc echo >> tools/bazel.rc
for opt in $CC_OPT_FLAGS; do 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 done
# Run the gen_git_source to create links where bazel can track dependencies for # Run the gen_git_source to create links where bazel can track dependencies for

View File

@ -27,3 +27,7 @@ run --spawn_strategy=standalone
build --genrule_strategy=standalone build --genrule_strategy=standalone
test --genrule_strategy=standalone test --genrule_strategy=standalone
run --genrule_strategy=standalone run --genrule_strategy=standalone
build -c opt
test -c opt
run -c opt