提交 acdbd689 编写于 作者: G Gunhan Gulsoy 提交者: TensorFlower Gardener

Create --config opt for compiling fully optimized binaries.

Change: 144609556
上级 6987e97e
......@@ -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
......
......@@ -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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册