Skip to content

Commit 332f080

Browse files
authored
Merge pull request #27878 from tensorflow/windows-cpu
Fix windows build for CPU too
2 parents 416b4a3 + c9fcc49 commit 332f080

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

tensorflow/tools/ci_build/windows/cpu/pip/build_tf_windows.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,10 @@ fi
100100

101101
run_configure_for_cpu_build
102102

103-
bazel build --announce_rc --config=opt tensorflow/tools/pip_package:build_pip_package || exit $?
103+
bazel build \
104+
--incompatible_remove_native_http_archive=false \
105+
--incompatible_disable_cc_toolchain_label_from_crosstool_proto=false \
106+
--announce_rc --config=opt tensorflow/tools/pip_package:build_pip_package || exit $?
104107

105108
if [[ "$SKIP_TEST" == 1 ]]; then
106109
exit 0
@@ -124,7 +127,10 @@ N_JOBS="${NUMBER_OF_PROCESSORS}"
124127

125128
# Define no_tensorflow_py_deps=true so that every py_test has no deps anymore,
126129
# which will result testing system installed tensorflow
127-
bazel test --announce_rc --config=opt -k --test_output=errors \
130+
bazel test \
131+
--incompatible_remove_native_http_archive=false \
132+
--incompatible_disable_cc_toolchain_label_from_crosstool_proto=false \
133+
--announce_rc --config=opt -k --test_output=errors \
128134
--define=no_tensorflow_py_deps=true --test_lang_filters=py \
129135
--test_tag_filters=-no_pip,-no_windows,-no_oss \
130136
--build_tag_filters=-no_pip,-no_windows,-no_oss --build_tests_only \

0 commit comments

Comments
 (0)