File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
tensorflow-core/tensorflow-core-api Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -7,9 +7,11 @@ export BAZEL_USE_CPP_ONLY_TOOLCHAIN=1
7
7
8
8
export BAZEL_VC=" ${VCINSTALLDIR:- } "
9
9
if [[ -d $BAZEL_VC ]]; then
10
+ export BAZEL_BUILD=" --output_user_root=$( cygpath -w $TMP ) build"
10
11
export BUILD_FLAGS=" --copt=//arch:AVX ` # --copt=//arch:AVX2` --define=override_eigen_strong_inline=true"
11
12
export PYTHON_BIN_PATH=$( which python.exe)
12
13
else
14
+ export BAZEL_BUILD=" build"
13
15
export BUILD_FLAGS=" --copt=-msse4.1 --copt=-msse4.2 --copt=-mavx ` # --copt=-mavx2 --copt=-mfma` --linkopt=-lstdc++ --host_linkopt=-lstdc++"
14
16
export PYTHON_BIN_PATH=$( which python3)
15
17
fi
@@ -33,7 +35,7 @@ BUILD_FLAGS="$BUILD_FLAGS --experimental_repo_remote_exec --python_path="$PYTHON
33
35
BUILD_FLAGS=" $BUILD_FLAGS --distinct_host_configuration=true"
34
36
35
37
# Build C/C++ API of TensorFlow itself including a target to generate ops for Java
36
- bazel --bazelrc=tensorflow.bazelrc build $BUILD_FLAGS ${BUILD_USER_FLAGS:- } \
38
+ bazel --bazelrc=tensorflow.bazelrc $BAZEL_BUILD $BUILD_FLAGS ${BUILD_USER_FLAGS:- } \
37
39
@org_tensorflow//tensorflow:tensorflow_cc \
38
40
@org_tensorflow//tensorflow/tools/lib_package:jnilicenses_generate \
39
41
:java_proto_gen_sources \
You can’t perform that action at this time.
0 commit comments