blob: 93357ec9f4b8d54c0a6759ac9678754d1147160d [file] [log] [blame]
---
platforms:
ubuntu1804:
shell_commands:
- |-
echo '
import %workspace%/.bazelrc' >>bazel.bazelrc
- |-
echo '
android_sdk_repository(name = "androidsdk")
android_ndk_repository(name = "androidndk")' >>WORKSPACE
- touch .bazelrc
- "./tensorflow/tools/ci_build/builds/configured CPU"
build_flags:
- "--config=opt"
# TODO(laszlocsomor): remove "--cxxopt=--std=c++11" after cr/200219133
# is merged to upstream TensorFlow, it's a temporary workaround for
# https://github.com/bazelbuild/bazel/issues/5365.
- "--cxxopt=--std=c++11"
build_targets:
- "//tensorflow/tools/pip_package:build_pip_package"
# - "//tensorflow/examples/android:tensorflow_demo"
windows:
batch_commands:
- "echo.| python ./configure.py"
build_flags:
- "--config=opt"
# NOTE(laszlocsomor): Regarding https://github.com/bazelbuild/bazel/issues/5365
# and the "--cxxopt=--std=c++11" flag on other platforms: Visual C++
# does not understand "--std=c++11", its syntax for C++ standard
# is "/std:c++14" or "/std:c++latest". It does not support "/std:c++11" so
# it is probably compiling for c++11 by default, therefore no flag is
# necessary.
build_targets:
- "//tensorflow/tools/pip_package:build_pip_package"