File tree Expand file tree Collapse file tree 3 files changed +4
-9
lines changed
tensorflow/tools/ci_build Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -102,9 +102,6 @@ bazel build -c opt ${PI_COPTS} \
102
102
--copt=-fomit-frame-pointer --cpu=armeabi \
103
103
--crosstool_top=@local_config_arm_compiler//:toolchain \
104
104
--verbose_failures \
105
- --distinct_host_configuration=true \
106
- //tensorflow:libtensorflow.so \
107
- //tensorflow:libtensorflow_framework.so \
108
105
//tensorflow/tools/benchmark:benchmark_model \
109
106
//tensorflow/tools/pip_package:build_pip_package
110
107
Original file line number Diff line number Diff line change @@ -73,6 +73,10 @@ if [[ "$release_build" != 1 ]]; then
73
73
echo " build --define=override_eigen_strong_inline=true" >> " ${TMP_BAZELRC} "
74
74
fi
75
75
76
+ # The host and target platforms are the same in Windows build. So we don't have
77
+ # to distinct them. This helps avoid building the same targets twice.
78
+ echo " build --distinct_host_configuration=false" >> " ${TMP_BAZELRC} "
79
+
76
80
echo " import %workspace%/${TMP_BAZELRC} " >> .bazelrc
77
81
78
82
run_configure_for_cpu_build
Original file line number Diff line number Diff line change 1
- # By default, we don't distinct target and host platfroms.
2
- # When doing cross compilation, use --config=cross_compile to distinct them.
3
- build --distinct_host_configuration=false
4
- build:cross_compile --distinct_host_configuration=true
5
-
6
1
# Android configs. Bazel needs to have --cpu and --fat_apk_cpu both set to the
7
2
# target CPU to build transient dependencies correctly. See
8
3
# https://docs.bazel.build/versions/master/user-manual.html#flag--fat_apk_cpu
9
4
build:android --crosstool_top=//external:android/crosstool
10
5
build:android --host_crosstool_top=@bazel_tools//tools/cpp:toolchain
11
- build:android --config=cross_compile
12
6
build:android_arm --config=android
13
7
build:android_arm --cpu=armeabi-v7a
14
8
build:android_arm --fat_apk_cpu=armeabi-v7a
You can’t perform that action at this time.
0 commit comments