Skip to content

Commit

Permalink
Enable consumption of GIT_TAG_OVERRIDE env var in release build scrip…
Browse files Browse the repository at this point in the history
…t. (#18579)

Enable consumption of GIT_TAG_OVERRIDE env var in release build script.
  • Loading branch information
yifeif committed Apr 17, 2018
1 parent 3128b43 commit 3177c06
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tensorflow/contrib/cmake/tf_core_framework.cmake
Expand Up @@ -276,7 +276,7 @@ add_custom_command(OUTPUT __force_rebuild COMMAND ${CMAKE_COMMAND} -E echo)
add_custom_command(OUTPUT
${VERSION_INFO_CC}
COMMAND ${PYTHON_EXECUTABLE} ${tensorflow_source_dir}/tensorflow/tools/git/gen_git_source.py
ARGS --raw_generate ${VERSION_INFO_CC} --source_dir ${tensorflow_source_dir}
ARGS --raw_generate ${VERSION_INFO_CC} --source_dir ${tensorflow_source_dir} --git_tag_override=${GIT_TAG_OVERRIDE}
DEPENDS __force_rebuild)
set(tf_version_srcs ${tensorflow_source_dir}/tensorflow/core/util/version_info.cc)

Expand Down
4 changes: 4 additions & 0 deletions tensorflow/tools/ci_build/builds/pip.sh
Expand Up @@ -123,6 +123,10 @@ done

BAZEL_FLAGS=$(str_strip "${BAZEL_FLAGS}")

if [[ -z "$GIT_TAG_OVERRIDE" ]]; then
BAZEL_FLAGS+=" --action_env=GIT_TAG_OVERRIDE"
fi

echo "Using Bazel flags: ${BAZEL_FLAGS}"

PIP_BUILD_TARGET="//tensorflow/tools/pip_package:build_pip_package"
Expand Down

0 comments on commit 3177c06

Please sign in to comment.