Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions ci/build_container/build_container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,18 @@ fi

export THIRDPARTY_DEPS=/tmp
export THIRDPARTY_SRC=/thirdparty
export THIRDPARTY_BUILD=/thirdparty_build

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This directory can be deleted now, right? I think this should get added into the script, or at least into the PR description that bazel clean is required.

DEPS=$(python <(cat target_recipes.bzl; \
echo "print ' '.join(\"${THIRDPARTY_DEPS}/%s.dep\" % r for r in set(TARGET_RECIPES.values()))"))
echo "Building deps ${DEPS}"

# TODO(htuch): We build twice as a workaround for https://github.com/google/protobuf/issues/3322.
# Fix this.
export THIRDPARTY_BUILD=/thirdparty_build_opt
export CPPFLAGS="-DNDEBUG"
echo "Building opt deps ${DEPS}"
"$(dirname "$0")"/build_and_install_deps.sh ${DEPS}

export THIRDPARTY_BUILD=/thirdparty_build_dbg
export CPPFLAGS=""
echo "Building dbg deps ${DEPS}"
rm -f /tmp/*.dep
"$(dirname "$0")"/build_and_install_deps.sh ${DEPS}