forked from boostorg/beast
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
close boostorg#1558 - Parallelize submodule clone. - Do a shallow submodule clone. - Move submodule update code to a script. - Build with BOOST_BEAST_USE_STD_STRING_VIEW on msvc Signed-off-by: Damian Jarek <[email protected]>
- Loading branch information
1 parent
a0932ea
commit df0e933
Showing
3 changed files
with
113 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
#! /bin/sh | ||
|
||
set -e | ||
|
||
build_dir=$2 | ||
|
||
branch="master" | ||
if [ "$1" != "master" ]; then | ||
branch="develop" | ||
fi | ||
|
||
git clone -b $branch --depth 1 https://github.com/boostorg/boost.git boost-root | ||
cd boost-root | ||
|
||
# Use a reasonably large depth to prevent intermittent update failures due to | ||
# commits being on a submodule's master before the superproject is updated. | ||
git submodule update --init --depth 20 --jobs 4 \ | ||
libs/array \ | ||
libs/headers \ | ||
tools/build \ | ||
tools/boost_install \ | ||
tools/boostdep \ | ||
libs/align \ | ||
libs/asio \ | ||
libs/assert \ | ||
libs/config \ | ||
libs/core \ | ||
libs/endian \ | ||
libs/filesystem \ | ||
libs/intrusive \ | ||
libs/locale \ | ||
libs/optional \ | ||
libs/smart_ptr \ | ||
libs/static_assert \ | ||
libs/system \ | ||
libs/throw_exception \ | ||
libs/type_traits \ | ||
libs/utility \ | ||
libs/winapi \ | ||
libs/algorithm \ | ||
libs/array \ | ||
libs/atomic \ | ||
libs/bind \ | ||
libs/chrono \ | ||
libs/concept_check \ | ||
libs/container \ | ||
libs/container_hash \ | ||
libs/context \ | ||
libs/conversion \ | ||
libs/coroutine \ | ||
libs/date_time \ | ||
libs/detail \ | ||
libs/exception \ | ||
libs/function \ | ||
libs/function_types \ | ||
libs/functional \ | ||
libs/fusion \ | ||
libs/integer \ | ||
libs/io \ | ||
libs/iterator \ | ||
libs/lambda \ | ||
libs/lexical_cast \ | ||
libs/logic \ | ||
libs/math \ | ||
libs/move \ | ||
libs/mp11 \ | ||
libs/mpl \ | ||
libs/numeric/conversion \ | ||
libs/pool \ | ||
libs/predef \ | ||
libs/preprocessor \ | ||
libs/random \ | ||
libs/range \ | ||
libs/ratio \ | ||
libs/rational \ | ||
libs/thread \ | ||
libs/tuple \ | ||
libs/type_index \ | ||
libs/typeof \ | ||
libs/unordered | ||
|
||
echo Submodule update complete | ||
|
||
echo "BUILD_DIR: $build_dir" | ||
|
||
rm -rf libs/beast | ||
mkdir libs/beast | ||
cp -r $build_dir libs/ |