提交 9c775b06 编写于 作者: A A. Unique TensorFlower 提交者: TensorFlower Gardener

Use /usertools/cpu.bazelrc for TSL presubmit build

Without this additional bazelrc file TSL will be built with the system compiler which happens to be GCC.

I also had to disable a warning that was raised by clang. It puzzles me a bit that this is not needed for the Tensorflow build which definitely uses Clang.

PiperOrigin-RevId: 564688122
上级 2c8798d2
......@@ -302,6 +302,7 @@ build:linux --copt="-Wno-deprecated"
build:linux --copt="-Wno-deprecated-declarations"
build:linux --copt="-Wno-ignored-attributes"
build:linux --copt="-Wno-array-bounds"
build:linux --copt="-Wno-error=array-parameter"
# Add unused-result as an error on Linux.
build:linux --copt="-Wunused-result"
......
......@@ -302,6 +302,7 @@ build:linux --copt="-Wno-deprecated"
build:linux --copt="-Wno-deprecated-declarations"
build:linux --copt="-Wno-ignored-attributes"
build:linux --copt="-Wno-array-bounds"
build:linux --copt="-Wno-error=array-parameter"
# Add unused-result as an error on Linux.
build:linux --copt="-Wunused-result"
......
......@@ -302,6 +302,7 @@ build:linux --copt="-Wno-deprecated"
build:linux --copt="-Wno-deprecated-declarations"
build:linux --copt="-Wno-ignored-attributes"
build:linux --copt="-Wno-array-bounds"
build:linux --copt="-Wno-error=array-parameter"
# Add unused-result as an error on Linux.
build:linux --copt="-Wunused-result"
......
......@@ -48,7 +48,7 @@ docker run --name tsl -w /tf/tsl -itd --rm \
bash
# Build TSL
docker exec tsl bazel build \
docker exec tsl bazel --bazelrc=/usertools/cpu.bazelrc build \
--output_filter="" \
--keep_going \
--build_tag_filters=$TAGS_FILTER \
......@@ -58,7 +58,7 @@ docker exec tsl bazel build \
-- //tsl/...
# Test TSL
docker exec tsl bazel test \
docker exec tsl bazel --bazelrc=/usertools/cpu.bazelrc test \
--output_filter="" \
--keep_going \
--flaky_test_attempts=3 \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册