Skip to content

Commit

Permalink
Merge pull request #27878 from tensorflow/windows-cpu
Browse files Browse the repository at this point in the history
Fix windows build for CPU too
  • Loading branch information
yifeif committed Apr 16, 2019
2 parents 416b4a3 + c9fcc49 commit 332f080
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tensorflow/tools/ci_build/windows/cpu/pip/build_tf_windows.sh
Expand Up @@ -100,7 +100,10 @@ fi

run_configure_for_cpu_build

bazel build --announce_rc --config=opt tensorflow/tools/pip_package:build_pip_package || exit $?
bazel build \
--incompatible_remove_native_http_archive=false \
--incompatible_disable_cc_toolchain_label_from_crosstool_proto=false \
--announce_rc --config=opt tensorflow/tools/pip_package:build_pip_package || exit $?

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

# Define no_tensorflow_py_deps=true so that every py_test has no deps anymore,
# which will result testing system installed tensorflow
bazel test --announce_rc --config=opt -k --test_output=errors \
bazel test \
--incompatible_remove_native_http_archive=false \
--incompatible_disable_cc_toolchain_label_from_crosstool_proto=false \
--announce_rc --config=opt -k --test_output=errors \
--define=no_tensorflow_py_deps=true --test_lang_filters=py \
--test_tag_filters=-no_pip,-no_windows,-no_oss \
--build_tag_filters=-no_pip,-no_windows,-no_oss --build_tests_only \
Expand Down

0 comments on commit 332f080

Please sign in to comment.